HtmlToText members
The HtmlToText class converts HTML to plain text.
The HtmlToText type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HtmlToText() | The HtmlToText constructor creates a new HtmlToText object. | |
HtmlToText(TextExtractionMode) | The HtmlToText constructor creates a new HtmlToText object and allows you to specify the text extraction mode. |
Top
Properties
Name | Description | |
---|---|---|
DetectEncodingFromByteOrderMark | The DetectEncodingFromByteOrderMark property gets or sets a Boolean value that indicates whether the encoding is detected from the byte order mark or determined by the InputEncoding property. | |
DetectEncodingFromMetaTag | The DetectEncodingFromMetaTag property gets or sets a Boolean value that indicates whether the encoding is detected from the meta tag or determined by the InputEncoding property. | |
Footer | The Footer property gets or sets the text that will appear in the output after any other text. | |
Header | The Header property gets or sets the text that will appear in the output before any other visible text. | |
HeaderFooterFormat | The HeaderFooterFormat property gets or sets a HeaderFooterFormat enumeration value that indicates whether headers and footers will be interpreted as text or as HTML. | |
HtmlEscapeOutput | The HtmlEscapeOutput property gets or sets a Boolean value that controls whether HTML escaping rules will be applied to the output of the conversion. | |
InputEncoding | The InputEncoding property gets or sets a Encoding object that represents the encoding to use when reading HTML input. | |
InputStreamBufferSize | The InputStreamBufferSize property gets or sets the internal input buffer size, in bytes, for stream input. (Inherited from TextConverter.) | |
NormalizeHtml | The NormalizeHtml property gets or sets a Boolean value that indicates whether this HtmlToText object will collapse white space, balance tags, and fix other problems in the source HTML. | |
OutputEncoding | The OutputEncoding property gets or sets a Encoding object that represents the encoding to use when reading HTML input. | |
OutputStreamBufferSize | The OutputStreamBufferSize method gets or sets the internal output buffer size, in bytes, for stream output. (Inherited from TextConverter.) | |
ShouldUseNarrowGapForPTagHtmlToTextConversion | ||
TextExtractionMode | The TextExtractionMode property gets a Boolean value that indicates whether this HtmlToText object preserves or removes formatting found in the source HTML. | |
Wrap | The Wrap property gets or sets a Boolean value indicating whether the output text should be wrapped. |
Top
Methods
Name | Description | |
---|---|---|
Convert(Stream, Stream) | The Convert method converts the entire contents of sourceStream from its format to the format specified by this TextConverter object and stores the result in destinationStream. (Inherited from TextConverter.) | |
Convert(Stream, TextWriter) | The Convert method converts the entire contents of sourceStream from its format to the format of destinationWriter and writes the result to destinationWriter. (Inherited from TextConverter.) | |
Convert(TextReader, Stream) | The Convert method converts the entire contents of sourceReader from its format to the format of destinationStream and stores the result in destinationStream. (Inherited from TextConverter.) | |
Convert(TextReader, TextWriter) | The Convert method converts the entire contents of sourceReader from its format to the format of destinationWriter and writes the result to destinationWriter. (Inherited from TextConverter.) |
Top
Fields
Name | Description | |
---|---|---|
locked | (Inherited from TextConverter.) | |
testBoundaryConditions | (Inherited from TextConverter.) |
Top