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()
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class HtmlParserContext : IHtmlParserContext, IHtmlSource
Constructors
HtmlParserContext(IHtmlSource)
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
HtmlParserContext(IHtmlSource, ParserOptions, IFragmentCreator)
Declaration
public HtmlParserContext(IHtmlSource source, ParserOptions options, IFragmentCreator creator)
Parameters
Properties
CaseFolding
Declaration
public CaseFolding CaseFolding { get; }
Property Value
Options
Declaration
public ParserOptions Options { get; set; }
Property Value
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
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
ParseFragment(HtmlFragmentType)
Declaration
public virtual HtmlFragment ParseFragment(HtmlFragmentType fragmentType)
Parameters
Returns
Peek()
Declaration
Returns
Type |
Description |
System.Char |
|
Pushback(Char)
Declaration
public void Pushback(char character)
Parameters
Type |
Name |
Description |
System.Char |
character |
|
Read()
Declaration
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