ClassHtmlParserOptions
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:
public class HtmlParserOptions
Inheritance: objectHtmlParserOptions
Constructors
Properties
AltText
Default text for alt attribute
BreakBeforeBR
O/p newline before <br> or not?
BurstSlides
Create slides on each h2 element
CharEncoding
Character Encoding
Declaration
public virtual CharEncoding CharEncoding { get; set; }
Property Value
DocType
The 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
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Str")]
public virtual string DocTypeStr { get; set; }
Property Value
DropEmptyParas
Discard empty p elements
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Paras")]
public virtual bool DropEmptyParas { get; set; }
Property Value
DropFontTags
Discard presentation tags
EncloseBlockText
If true text in blocks is wrapped in <p>'s
Declaration
public virtual bool EncloseBlockText { get; set; }
Property Value
EncloseText
If true text at body is wrapped in <p>'s
FixBackslash
Fix URLs by replacing \ with /
FixComments
Fix comments with adjacent hyphens
HideEndTags
Suppress optional end tags
IndentAttributes
Newline+indent before each attribute
Declaration
public virtual bool IndentAttributes { get; set; }
Property Value
IndentContent
Indent content of appropriate tags
LiteralAttribs
If true attributes may use newlines
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Attribs")]
public virtual bool LiteralAttribs { get; set; }
Property Value
LogicalEmphasis
Replace i by em and b by strong
MakeClean
Remove presentational clutter
NumEntities
Use numeric entities
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Num")]
public virtual bool NumEntities { get; set; }
Property Value
QuoteAmpersand
Output naked ampersand as &
QuoteMarks
Output " marks as "
QuoteNbsp
Output non-breaking space as entity
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Nbsp")]
public virtual bool QuoteNbsp { get; set; }
Property Value
RawOut
Avoid mapping values > 127 to entities
Slidestyle
Style sheet for slides
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Slidestyle")]
public virtual string Slidestyle { get; set; }
Property Value
SmartIndent
Does text/block level content affect indentation
Spaces
Default indentation
TabSize
Tab size
UpperCaseAttrs
Output attributes in upper not lower case
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Attrs")]
public virtual bool UpperCaseAttrs { get; set; }
Property Value
UpperCaseTags
Output tags in upper not lower case
Word2000
Draconian cleaning for Word2000
WrapAsp
Wrap within ASP pseudo elements
WrapAttributeValues
Wrap within attribute values
Declaration
public virtual bool WrapAttributeValues { get; set; }
Property Value
WrapJste
Wrap within JSTE pseudo elements
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Jste")]
public virtual bool WrapJste { get; set; }
Property Value
WrapLen
Default wrap margin
WrapPhp
Wrap within PHP pseudo elements
WrapScriptlets
Wrap within JavaScript string literals
WrapSection
Wrap within <![ ... ]> section tags
Xhtml
Output XHTML
XmlOut
Create output as XML
XmlPIs
If set to true PIs must end with ?>
XmlPi
Add <?xml?> for XML docs
XmlSpace
If set to yes adds xml:space attr as needed