Class CDataFragment
A CDATA fragment in a HTML stream.
Inherited Members
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class CDataFragment : HtmlFragment
Constructors
CDataFragment()
Initializes a new instance of the CDataFragment class.
Declaration
public CDataFragment()
Properties
Name
Gets the name of the fragment, which is always "[CDATA[".
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Overrides
Remarks
Attempting to set this property will throw a NotSupportedException.
Methods
Parse(IHtmlParserContext)
Parses the fragment from the specified context.
Declaration
public override void Parse(IHtmlParserContext context)
Parameters
Type | Name | Description |
---|---|---|
IHtmlParserContext | context | The context. |
Overrides
ToWriter(TextWriter)
Writes the fragment to the given TextWriter.
Declaration
public override void ToWriter(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | writer | The writer. |