Class HtmlParserContext

Inheritance
System.Object
HtmlParserContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class HtmlParserContext : IHtmlParserContext, IHtmlSource

Constructors

HtmlParserContext(IHtmlSource)

Initializes a new instance of the HtmlParserContext class.

Declaration
public HtmlParserContext(IHtmlSource source)
Parameters
Type Name Description
IHtmlSource source

The source of the HTML stream to parse.

HtmlParserContext(IHtmlSource, ParserOptions)

Declaration
public HtmlParserContext(IHtmlSource source, ParserOptions options)
Parameters
Type Name Description
IHtmlSource source
ParserOptions options

HtmlParserContext(IHtmlSource, ParserOptions, IFragmentCreator)

Declaration
public HtmlParserContext(IHtmlSource source, ParserOptions options, IFragmentCreator creator)
Parameters
Type Name Description
IHtmlSource source
ParserOptions options
IFragmentCreator creator

Properties

CaseFolding

Declaration
public CaseFolding CaseFolding { get; }
Property Value
Type Description
CaseFolding

Options

Declaration
public ParserOptions Options { get; set; }
Property Value
Type Description
ParserOptions

SpecialTextFragment

Declaration
public string SpecialTextFragment { get; set; }
Property Value
Type Description
System.String

Methods

GetBuilder()

Declaration
public StringBuilder GetBuilder()
Returns
Type Description
System.Text.StringBuilder

GetRunningComparer(String)

Declaration
public RunningComparer GetRunningComparer(string match)
Parameters
Type Name Description
System.String match
Returns
Type Description
RunningComparer

GetToken(String, out Int32)

Declaration
public char[] GetToken(string terminators, out int length)
Parameters
Type Name Description
System.String terminators
System.Int32 length
Returns
Type Description
System.Char[]

IsWhiteSpace(Char)

Declaration
public bool IsWhiteSpace(char character)
Parameters
Type Name Description
System.Char character
Returns
Type Description
System.Boolean

NextFragment()

Declaration
public HtmlFragment NextFragment()
Returns
Type Description
HtmlFragment

ParseFragment(HtmlFragmentType)

Declaration
public virtual HtmlFragment ParseFragment(HtmlFragmentType fragmentType)
Parameters
Type Name Description
HtmlFragmentType fragmentType
Returns
Type Description
HtmlFragment

Peek()

Declaration
public char Peek()
Returns
Type Description
System.Char

Pushback(Char)

Declaration
public void Pushback(char character)
Parameters
Type Name Description
System.Char character

Read()

Declaration
public char Read()
Returns
Type Description
System.Char

SetSpecialName(String)

Declaration
public virtual void SetSpecialName(string name)
Parameters
Type Name Description
System.String name

SkipWhiteSpace()

Declaration
public bool SkipWhiteSpace()
Returns
Type Description
System.Boolean

TryGetQuotedString(out String)

Declaration
public bool TryGetQuotedString(out string quotedString)
Parameters
Type Name Description
System.String quotedString
Returns
Type Description
System.Boolean

TryGetString(String, out String)

Declaration
public bool TryGetString(string terminators, out string value)
Parameters
Type Name Description
System.String terminators
System.String value
Returns
Type Description
System.Boolean

TryGetUnquotedString(String, out String)

Declaration
public bool TryGetUnquotedString(string terminators, out string value)
Parameters
Type Name Description
System.String terminators
System.String value
Returns
Type Description
System.Boolean

Implements

Extension Methods