Class ParserOptions
  
  Controls the behavior of the HtmlStreamParser by configuring specific features.
    Inheritance
    System.Object
    ParserOptions
   
  
  Assembly: EPiServer.Framework.dll
  Version: 12.0.3
  Syntax
  
    public sealed class ParserOptions : Enum
   
  Fields
  
  
  
  DefaultOptions
  The default set of options, will create modern HTML that is basically XHTML compliant.
Declaration
  
    public const ParserOptions DefaultOptions
   
  Field Value
  
  
  
  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.
Declaration
  
    public const ParserOptions EnableCallbackOnEndElement
   
  Field Value
  
  
  
  EnforceDocumentStructure
  Set this option to indicate that you want the parser to correct unbalanced elements.
Declaration
  
    public const ParserOptions EnforceDocumentStructure
   
  Field Value
  
  
  
  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.
Declaration
  
    public const ParserOptions EnforceElementSemantics
   
  Field Value
  
  
  
  EnforceEmptyContentModel
  Set this option to enforce empty elements when content model for element is EMPTY.
Declaration
  
    public const ParserOptions EnforceEmptyContentModel
   
  Field Value
  
  
  
  HtmlOptions
  Option set that will allow "old style" HTML to be generated (unbalanced elements etc).
Declaration
  
    public const ParserOptions HtmlOptions
   
  Field Value
  
  
  
  None
  The resulting fragments will be as close as possible to the original input stream.
Declaration
  
    public const ParserOptions None
   
  Field Value
  
  
  
  ObeyDocumentTypeDirective
  Set this option to dynamically set the parser options based on the DOCTYPE directive in the HTML stream, if it exists.
Declaration
  
    public const ParserOptions ObeyDocumentTypeDirective
   
  Field Value
  
  
  
  SimpleEnumeratorMask
  
  
  Declaration
  
    public const ParserOptions SimpleEnumeratorMask
   
  Field Value
  
  
  
  TagNamesToLower
  Set this option to automatically fold element names to lower case.
Declaration
  
    public const ParserOptions TagNamesToLower
   
  Field Value
  
  
  
  TagNamesToUpper
  Set this option to automatically fold element names to upper case.
Declaration
  
    public const ParserOptions TagNamesToUpper
   
  Field Value
  
  
  
  TrimEmptyElements
  Set this option to automatically remove empty elements from the HTML stream that do not effect visual presentation.
Declaration
  
    public const ParserOptions TrimEmptyElements
   
  Field Value
  
  
  
  value__
  
  
  Declaration
  
  Field Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  | 
    
  
  
  
  XhtmlOptions
  Option set that will produce modern HTML that is basically XHTML compliant.
Declaration
  
    public const ParserOptions XhtmlOptions
   
  Field Value
  
  Extension Methods