C# Class PvcPlugins.PvcHtmlCompressor

Inheritance: PvcPlugins.PvcPlugin
ファイルを表示 Open project: pauljz/pvc-htmlcompressor

Public Methods

Method Description
Execute ( IEnumerable inputStreams ) : IEnumerable
PvcHtmlCompressor ( bool concurrent = true, bool removeComments = true, bool removeMultiSpaces = true, bool removeLineBreaks = true, bool removeIntertagSpaces = false, bool removeQuotes = false, bool simpleDoctype = false, bool removeStyleAttributes = false, bool removeLinkAttributes = false, bool removeScriptAttributes = false, bool removeFormAttributes = false, bool removeInputAttributes = false, bool simpleBooleanAttributes = false, bool removeJavaScriptProtocol = false, bool removeHttpProtocol = false, bool removeHttpsProtocol = false, string removeSurroundingSpacesTags = "" ) : System

Removes unnecessary whitespace and markup from HTML documents.

Private Methods

Method Description
CompressStream ( PvcCore.PvcStream inputStream ) : PvcCore.PvcStream

Method Details

Execute() public method

public Execute ( IEnumerable inputStreams ) : IEnumerable
inputStreams IEnumerable
return IEnumerable

PvcHtmlCompressor() public method

Removes unnecessary whitespace and markup from HTML documents.
public PvcHtmlCompressor ( bool concurrent = true, bool removeComments = true, bool removeMultiSpaces = true, bool removeLineBreaks = true, bool removeIntertagSpaces = false, bool removeQuotes = false, bool simpleDoctype = false, bool removeStyleAttributes = false, bool removeLinkAttributes = false, bool removeScriptAttributes = false, bool removeFormAttributes = false, bool removeInputAttributes = false, bool simpleBooleanAttributes = false, bool removeJavaScriptProtocol = false, bool removeHttpProtocol = false, bool removeHttpsProtocol = false, string removeSurroundingSpacesTags = "" ) : System
concurrent bool
removeComments bool Removes comments
removeMultiSpaces bool Removes multiple spaces
removeLineBreaks bool Removes linebreaks
removeIntertagSpaces bool Removes spaces between tags
removeQuotes bool Remove unneeded quotes
simpleDoctype bool Change doctype to <!DOCTYPE html>
removeStyleAttributes bool Remove TYPE attribute from STYLE tags
removeLinkAttributes bool Remove TYPE attribute from LINK tags
removeScriptAttributes bool Remove TYPE and LANGUAGE from SCRIPT tags
removeFormAttributes bool Remove METHOD="GET" from FORM tags
removeInputAttributes bool
simpleBooleanAttributes bool Remove values from boolean tag attributes
removeJavaScriptProtocol bool Remove "javascript:" from inline event handlers
removeHttpProtocol bool Remove "http:" from tag attributes
removeHttpsProtocol bool Remove "https:" from tag attributes
removeSurroundingSpacesTags string Predefined or custom comma separated list of tags [min|max|all|custom_list]
return System