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 CData
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. |
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 |
---|---|---|
IHtml |
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. |
writer | The writer. |