HtmlMinifier Class
- Namespace
- Kampute.DocToolkit.IO.Minifiers
- Assembly
Definition
A
TextWriter that wraps another
TextWriter that outputs well-formed HTML content, minifying it by removing unnecessary whitespace and comments, while preserving whitespace within
<pre> elements.
public class HtmlMinifier : WrappedTextWriter
- Inheritance
Thread Safety
Constructors
Properties
| InlineTags | Gets the set of HTML tags that are considered inline elements. |
| PreformattedTags | Gets the set of HTML tags that are considered pre-formatted elements. |
| PreserveAttributeWhitespace | Gets or sets a value indicating whether to preserve whitespace within attribute values. |
| PreserveComments | Gets or sets a value indicating whether to preserve comments within the HTML content. |
Methods
<pre>elements. This results in a more compact HTML output suitable for production use and bandwidth-sensitive scenarios.