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:
public class HtmlParserOptions
Inheritance: objectHtmlParserOptions
Constructors
Default constructor.
public HtmlParserOptions()
Properties
O/p newline before <br> or not?
public virtual bool BreakBeforeBR { get; set; }
Create slides on each h2 element
public virtual bool BurstSlides { get; set; }
Character Encoding
public virtual CharEncoding CharEncoding { get; set; }
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.
public virtual string DocTypeStr { get; set; }
Discard empty p elements
public virtual bool DropEmptyParas { get; set; }
Discard presentation tags
public virtual bool DropFontTags { get; set; }
If true text in blocks is wrapped in <p>'s
public virtual bool EncloseBlockText { get; set; }
If true text at body is wrapped in <p>'s
public virtual bool EncloseText { get; set; }
Fix URLs by replacing \ with /
public virtual bool FixBackslash { get; set; }
Fix comments with adjacent hyphens
public virtual bool FixComments { get; set; }
Suppress optional end tags
public virtual bool HideEndTags { get; set; }
Newline+indent before each attribute
public virtual bool IndentAttributes { get; set; }
Indent content of appropriate tags
public virtual bool IndentContent { get; set; }
If true attributes may use newlines
public virtual bool LiteralAttribs { get; set; }
Replace i by em and b by strong
public virtual bool LogicalEmphasis { get; set; }
Use numeric entities
public virtual bool NumEntities { get; set; }
Output naked ampersand as &
public virtual bool QuoteAmpersand { get; set; }
Output " marks as "
public virtual bool QuoteMarks { get; set; }
Style sheet for slides
public virtual string Slidestyle { get; set; }
Does text/block level content affect indentation
public virtual bool SmartIndent { get; set; }
Output attributes in upper not lower case
public virtual bool UpperCaseAttrs { get; set; }
Output tags in upper not lower case
public virtual bool UpperCaseTags { get; set; }
Wrap within attribute values
public virtual bool WrapAttributeValues { get; set; }
Wrap within JavaScript string literals
public virtual bool WrapScriptlets { get; set; }
Wrap within <![ ... ]> section tags
public virtual bool WrapSection { get; set; }
If set to yes adds xml:space attr as needed
public virtual bool XmlSpace { get; set; }