Sign in Join
FPDoc Onlineexperiment

THTMLWriter.EscapeText function

Member of THTMLWriterpublicIn unit WHtml

Escapes HTML special characters

Declaration

pascal
function 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

  • EscapeText

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.