- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_disable_tags(const str: string): string;
Arguments:
-
Description:
-
Removes all unsafe characters with their HTTP macro equivalents. Primary XSS protection.
Returns:
-
Replacement result string.
Usage:
-
s := 'I am unsafe <script>';
s := web_disable_tags(s);
web_print(s);
See also:
-
web_nl2br.
|