Unit 'whtml' Package
[Overview][Constants][Classes][Index] [#fcl]

THTMLWriter.EscapeText

Escapes HTML special characters

Declaration

Source position: whtml.pp line 35

public function THTMLWriter.EscapeText(

  AText: string

):string; override;

Arguments

AText

  

Input text to be escaped

Function result

Text with HTML characters escaped

Description

Escapes HTML special characters in text to prevent them from being interpreted as markup. Replaces ampersand (&), less-than (<), greater-than (>) characters with their HTML entities, and converts line feeds to HTML line breaks (<BR>).

See also

TFormattingWriter.EscapeText


Documentation generated on: Jan 16 2026