Skip to content

THTMLWriter.EscapeText

Escapes HTML special characters

Declaration

Source position: whtml.pp line 35

public 
function THTMLWriter.EscapeText(AText: string) : string;  override;

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

Name Description
TFormattingWriter.EscapeText