[Overview][Classes][Procedures and functions][Index] Reference for unit 'HTML2TextRender' (#lazutils)

THTML2TextRenderer.Create

Constructor for the class instance.

Declaration

Source position: html2textrender.pas line 57

public constructor THTML2TextRenderer.Create(

  const aHTML: string

);

constructor THTML2TextRenderer.Create(

  const Stream: TStream

);

Arguments

aHTML

  

String with the HTML content examined in the class.

Arguments

Stream

  

TStream instance with the HTML content examined in the class.

Description

Create is the overloaded constructor for the class instance. HTML content is passed as an argument to the method using either a String value or a TStream instance. The Stream-based variant reads the content in Stream into a String variable for processing. The position in the stream is not changed prior to or after reading its content.

Create stores the HTML content in aHTML to an internal member used when parsing and processing using methods in the class. A UTF-8 Byte Order Mark (BOM) at the start of the HTML content is removed prior to processing.

Create sets the default values for the following properties:

LineEndMark
Set to the value in the LineEnding constant for the platform or OS.
TitleMark
Set to the UTF-8 character '◈' (#9672 or #x25C8)
HorzLineMark
Set to the UTF-8 characters '——————————————————'.
LinkBeginMark
Set to the character '_'.
LinkEndMark
Set to the character '_'.
ListItemMark
Set to the UTF-8 characters '✶ ' (Hex #$2736).
MoreMark
Set to the characters '...' (Three Period characters - not an Ellipsis character).
IndentStep
Set to 2.

Version 4.0 Generated 2025-05-03 Home