Skip to main content

HtmlCompressor

Assembly: ServiceStack.dll
View Source
Declaration
public sealed class HtmlCompressor : ICompressor

Fields

PHP_TAG_PATTERN

View Source
Declaration
public static readonly Regex PHP_TAG_PATTERN

SERVER_SCRIPT_TAG_PATTERN

View Source
Declaration
public static readonly Regex SERVER_SCRIPT_TAG_PATTERN

SERVER_SIDE_INCLUDE_PATTERN

View Source
Declaration
public static readonly Regex SERVER_SIDE_INCLUDE_PATTERN

BLOCK_TAGS_MIN

View Source
Declaration
public static readonly string BLOCK_TAGS_MIN

BLOCK_TAGS_MAX

View Source
Declaration
public static readonly string BLOCK_TAGS_MAX

ALL_TAGS

View Source
Declaration
public static readonly string ALL_TAGS

Enabled

View Source
Declaration
public bool Enabled

JavaScriptCompressor

View Source
Declaration
public ICompressor JavaScriptCompressor

CssCompressor

View Source
Declaration
public ICompressor CssCompressor

RemoveComments

View Source
Declaration
public bool RemoveComments

RemoveMultiSpaces

View Source
Declaration
public bool RemoveMultiSpaces

RemoveIntertagSpaces

View Source
Declaration
public bool RemoveIntertagSpaces

RemoveQuotes

View Source
Declaration
public bool RemoveQuotes

CompressJavaScript

View Source
Declaration
public bool CompressJavaScript

CompressCss

View Source
Declaration
public bool CompressCss

SimpleDoctype

View Source
Declaration
public bool SimpleDoctype

RemoveScriptAttributes

View Source
Declaration
public bool RemoveScriptAttributes

RemoveStyleAttributes

View Source
Declaration
public bool RemoveStyleAttributes

RemoveLinkAttributes

View Source
Declaration
public bool RemoveLinkAttributes

RemoveFormAttributes

View Source
Declaration
public bool RemoveFormAttributes

RemoveInputAttributes

View Source
Declaration
public bool RemoveInputAttributes

SimpleBooleanAttributes

View Source
Declaration
public bool SimpleBooleanAttributes

RemoveJavaScriptProtocol

View Source
Declaration
public bool RemoveJavaScriptProtocol

RemoveHttpProtocol

View Source
Declaration
public bool RemoveHttpProtocol

RemoveHttpsProtocol

View Source
Declaration
public bool RemoveHttpsProtocol

PreserveLineBreaks

View Source
Declaration
public bool PreserveLineBreaks

RemoveSurroundingSpaces

View Source
Declaration
public string RemoveSurroundingSpaces

PreservePatterns

View Source
Declaration
public List<Regex> PreservePatterns

GenerateStatistics

View Source
Declaration
public bool GenerateStatistics

Statistics

View Source
Declaration
public HtmlCompressorStatistics Statistics

Methods

Compress(String)

View Source
Declaration
public string Compress(string html)
Returns

System.String

Parameters
TypeName
System.Stringhtml

Implements