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

RenderHTML2Text

Converts the specified HTML content to a plain text value.

Declaration

Source position: html2textrender.pas line 73

function RenderHTML2Text(

  const AHTML: string

):string;

Arguments

AHTML

  

String with the HTML content converted in the routine.

Function result

String with the plain text value for the specified HTML content.

Description

RenderHTML2Text is a String function used to convert the HTML content specified in AHTML to a string with the plain text for the content. RenderHTML2Text creates a temporary THTML2TextRenderer instance (using its default configuration values) to remove any HTML mark-up found in the AHTML argument by calling its Render method.

RenderHTML2Text is a convenience routine; use a THTML2TextRenderer instance when the HTML content is stored in a TStream instance, or to override the default configuration settings for the class instance.

See also

THTML2TextRenderer.Render

  

Parses the HTML and renders the plain text output.


Version 4.0 Generated 2025-05-03 Home