Enum ParserOptions

Controls the behavior of the HtmlStreamParser by configuring specific features.

Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
[Flags]
public enum ParserOptions

Fields

Name Description
DefaultOptions

The default set of options, will create modern HTML that is basically XHTML compliant.

EnableCallbackOnEndElement

Set this option to enable callbacks when an end element is found. The callback is set on the CallbackOnEndElement property when the start element is found.

EnforceDocumentStructure

Set this option to indicate that you want the parser to correct unbalanced elements.

EnforceElementSemantics

Set this option to let HTML parser enforce HTML element semantics, for example not allowing block elements within a p element. Note - This is not yet implemented.

EnforceEmptyContentModel

Set this option to enforce empty elements when content model for element is EMPTY.

HtmlOptions

Option set that will allow "old style" HTML to be generated (unbalanced elements etc).

None

The resulting fragments will be as close as possible to the original input stream.

ObeyDocumentTypeDirective

Set this option to dynamically set the parser options based on the DOCTYPE directive in the HTML stream, if it exists.

SimpleEnumeratorMask

For internal use only

TagNamesToLower

Set this option to automatically fold element names to lower case.

TagNamesToUpper

Set this option to automatically fold element names to upper case.

TrimEmptyElements

Set this option to automatically remove empty elements from the HTML stream that do not effect visual presentation.

XhtmlOptions

Option set that will produce modern HTML that is basically XHTML compliant.