Class
HtmlParserOptions

HtmlParser options.

(c) 1998-2000 (W3C) MIT, INRIA, Keio University See HtmlParser.cs for the copyright notice. Derived from HTML HtmlParser Release 4 Aug 2000

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Html.Parsing

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class HtmlParserOptions

Inheritance: objectHtmlParserOptions

Constructors

HtmlParserOptions()

Default constructor.

Declaration

cs-api-definition
public HtmlParserOptions()

Properties

AltText

Default text for alt attribute

Declaration

cs-api-definition
public virtual string AltText { get; set; }

Property Value

string

BreakBeforeBR

O/p newline before <br> or not?

Declaration

cs-api-definition
public virtual bool BreakBeforeBR { get; set; }

Property Value

bool

BurstSlides

Create slides on each h2 element

Declaration

cs-api-definition
public virtual bool BurstSlides { get; set; }

Property Value

bool

CharEncoding

Character Encoding

Declaration

cs-api-definition
public virtual CharEncoding CharEncoding { get; set; }

Property Value

CharEncoding

DocType

The DOCTYPE

Declaration

cs-api-definition
public virtual DocType DocType { get; set; }

Property Value

DocType

DocTypeStr

DocType - user specified doctype omit | auto | strict | loose | fpi where the fpi is a string similar to "-//ACME//DTD HTML 3.14159//EN" Note: for fpi include the double-quotes in the string.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Str")]
public virtual string DocTypeStr { get; set; }

Property Value

string

DropEmptyParas

Discard empty p elements

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Paras")]
public virtual bool DropEmptyParas { get; set; }

Property Value

bool

DropFontTags

Discard presentation tags

Declaration

cs-api-definition
public virtual bool DropFontTags { get; set; }

Property Value

bool

EncloseBlockText

If true text in blocks is wrapped in <p>'s

Declaration

cs-api-definition
public virtual bool EncloseBlockText { get; set; }

Property Value

bool

EncloseText

If true text at body is wrapped in <p>'s

Declaration

cs-api-definition
public virtual bool EncloseText { get; set; }

Property Value

bool

FixBackslash

Fix URLs by replacing \ with /

Declaration

cs-api-definition
public virtual bool FixBackslash { get; set; }

Property Value

bool

FixComments

Fix comments with adjacent hyphens

Declaration

cs-api-definition
public virtual bool FixComments { get; set; }

Property Value

bool

HideEndTags

Suppress optional end tags

Declaration

cs-api-definition
public virtual bool HideEndTags { get; set; }

Property Value

bool

IndentAttributes

Newline+indent before each attribute

Declaration

cs-api-definition
public virtual bool IndentAttributes { get; set; }

Property Value

bool

IndentContent

Indent content of appropriate tags

Declaration

cs-api-definition
public virtual bool IndentContent { get; set; }

Property Value

bool

LiteralAttribs

If true attributes may use newlines

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Attribs")]
public virtual bool LiteralAttribs { get; set; }

Property Value

bool

LogicalEmphasis

Replace i by em and b by strong

Declaration

cs-api-definition
public virtual bool LogicalEmphasis { get; set; }

Property Value

bool

MakeClean

Remove presentational clutter

Declaration

cs-api-definition
public virtual bool MakeClean { get; set; }

Property Value

bool

NumEntities

Use numeric entities

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Num")]
public virtual bool NumEntities { get; set; }

Property Value

bool

QuoteAmpersand

Output naked ampersand as &

Declaration

cs-api-definition
public virtual bool QuoteAmpersand { get; set; }

Property Value

bool

QuoteMarks

Output " marks as &quot;

Declaration

cs-api-definition
public virtual bool QuoteMarks { get; set; }

Property Value

bool

QuoteNbsp

Output non-breaking space as entity

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nbsp")]
public virtual bool QuoteNbsp { get; set; }

Property Value

bool

RawOut

Avoid mapping values > 127 to entities

Declaration

cs-api-definition
public virtual bool RawOut { get; set; }

Property Value

bool

Slidestyle

Style sheet for slides

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Slidestyle")]
public virtual string Slidestyle { get; set; }

Property Value

string

SmartIndent

Does text/block level content affect indentation

Declaration

cs-api-definition
public virtual bool SmartIndent { get; set; }

Property Value

bool

Spaces

Default indentation

Declaration

cs-api-definition
public virtual int Spaces { get; set; }

Property Value

int

TabSize

Tab size

Declaration

cs-api-definition
public virtual int TabSize { get; set; }

Property Value

int

UpperCaseAttrs

Output attributes in upper not lower case

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Attrs")]
public virtual bool UpperCaseAttrs { get; set; }

Property Value

bool

UpperCaseTags

Output tags in upper not lower case

Declaration

cs-api-definition
public virtual bool UpperCaseTags { get; set; }

Property Value

bool

Word2000

Draconian cleaning for Word2000

Declaration

cs-api-definition
public virtual bool Word2000 { get; set; }

Property Value

bool

WrapAsp

Wrap within ASP pseudo elements

Declaration

cs-api-definition
public virtual bool WrapAsp { get; set; }

Property Value

bool

WrapAttributeValues

Wrap within attribute values

Declaration

cs-api-definition
public virtual bool WrapAttributeValues { get; set; }

Property Value

bool

WrapJste

Wrap within JSTE pseudo elements

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Jste")]
public virtual bool WrapJste { get; set; }

Property Value

bool

WrapLen

Default wrap margin

Declaration

cs-api-definition
public virtual int WrapLen { get; set; }

Property Value

int

WrapPhp

Wrap within PHP pseudo elements

Declaration

cs-api-definition
public virtual bool WrapPhp { get; set; }

Property Value

bool

WrapScriptlets

Wrap within JavaScript string literals

Declaration

cs-api-definition
public virtual bool WrapScriptlets { get; set; }

Property Value

bool

WrapSection

Wrap within <![ ... ]> section tags

Declaration

cs-api-definition
public virtual bool WrapSection { get; set; }

Property Value

bool

Xhtml

Output XHTML

Declaration

cs-api-definition
public virtual bool Xhtml { get; set; }

Property Value

bool

XmlOut

Create output as XML

Declaration

cs-api-definition
public virtual bool XmlOut { get; set; }

Property Value

bool

XmlPIs

If set to true PIs must end with ?>

Declaration

cs-api-definition
public virtual bool XmlPIs { get; set; }

Property Value

bool

XmlPi

Add <?xml?> for XML docs

Declaration

cs-api-definition
public virtual bool XmlPi { get; set; }

Property Value

bool

XmlSpace

If set to yes adds xml:space attr as needed

Declaration

cs-api-definition
public virtual bool XmlSpace { get; set; }

Property Value

bool

XmlTags

Treat input as XML

Declaration

cs-api-definition
public virtual bool XmlTags { get; set; }

Property Value

bool