HtmlMinifier Class

HtmlMinifier Class

public static class HtmlMinifier

Inheritance  Object HtmlMinifier

Methods

Name Description
EnsureMaxLength(string) Ensure that the max character count is less than 65K. If so, break onto the next line.
MinifyHtml(string) Minifies the given HTML string.
MinifyHtmlCode(StreamReader) Minify the HTML code
MinifyHtmlCode(string) Minifies the HTML code
ReArrangeDeclarations(string) Find any occurences of the particular Razor keywords and add a new line or move to the top of the view.
RemoveJavaScriptComments(string) Removes any JavaScript Comments in a script block