New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class HtmlParserOptions

Inheritance: objectHtmlParserOptions

Constructors

Default constructor.

C#
public HtmlParserOptions()

Properties

Default text for alt attribute

C#
public virtual string AltText { get; set; }

O/p newline before <br> or not?

C#
public virtual bool BreakBeforeBR { get; set; }

Create slides on each h2 element

C#
public virtual bool BurstSlides { get; set; }

Character Encoding

C#
public virtual CharEncoding CharEncoding { get; set; }

The DOCTYPE

C#
public virtual DocType DocType { 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.

C#
public virtual string DocTypeStr { get; set; }

Discard empty p elements

C#
public virtual bool DropEmptyParas { get; set; }

Discard presentation tags

C#
public virtual bool DropFontTags { get; set; }

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

C#
public virtual bool EncloseBlockText { get; set; }

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

C#
public virtual bool EncloseText { get; set; }

Fix URLs by replacing \ with /

C#
public virtual bool FixBackslash { get; set; }

Fix comments with adjacent hyphens

C#
public virtual bool FixComments { get; set; }

Suppress optional end tags

C#
public virtual bool HideEndTags { get; set; }

Newline+indent before each attribute

C#
public virtual bool IndentAttributes { get; set; }

Indent content of appropriate tags

C#
public virtual bool IndentContent { get; set; }

If true attributes may use newlines

C#
public virtual bool LiteralAttribs { get; set; }

Replace i by em and b by strong

C#
public virtual bool LogicalEmphasis { get; set; }

Remove presentational clutter

C#
public virtual bool MakeClean { get; set; }

Use numeric entities

C#
public virtual bool NumEntities { get; set; }

Output naked ampersand as &

C#
public virtual bool QuoteAmpersand { get; set; }

Output " marks as &quot;

C#
public virtual bool QuoteMarks { get; set; }

Output non-breaking space as entity

C#
public virtual bool QuoteNbsp { get; set; }

Avoid mapping values > 127 to entities

C#
public virtual bool RawOut { get; set; }

Style sheet for slides

C#
public virtual string Slidestyle { get; set; }

Does text/block level content affect indentation

C#
public virtual bool SmartIndent { get; set; }

Default indentation

C#
public virtual int Spaces { get; set; }

Tab size

C#
public virtual int TabSize { get; set; }

Output attributes in upper not lower case

C#
public virtual bool UpperCaseAttrs { get; set; }

Output tags in upper not lower case

C#
public virtual bool UpperCaseTags { get; set; }

Draconian cleaning for Word2000

C#
public virtual bool Word2000 { get; set; }

Wrap within ASP pseudo elements

C#
public virtual bool WrapAsp { get; set; }

Wrap within attribute values

C#
public virtual bool WrapAttributeValues { get; set; }

Wrap within JSTE pseudo elements

C#
public virtual bool WrapJste { get; set; }

Default wrap margin

C#
public virtual int WrapLen { get; set; }

Wrap within PHP pseudo elements

C#
public virtual bool WrapPhp { get; set; }

Wrap within JavaScript string literals

C#
public virtual bool WrapScriptlets { get; set; }

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

C#
public virtual bool WrapSection { get; set; }

Output XHTML

C#
public virtual bool Xhtml { get; set; }

Create output as XML

C#
public virtual bool XmlOut { get; set; }

Add <?xml?> for XML docs

C#
public virtual bool XmlPi { get; set; }

If set to true PIs must end with ?>

C#
public virtual bool XmlPIs { get; set; }

If set to yes adds xml:space attr as needed

C#
public virtual bool XmlSpace { get; set; }

Treat input as XML

C#
public virtual bool XmlTags { get; set; }