Goto main content

htmlspecialchars

Convert special characters to HTML entities.

HTMLSPECIALCHARS

NAME

htmlspecialchars - Converts special characters to HTML entities.

SYNOPSIS

htmlspecialchars(string,squote)

PARAMETERS

string
The string being converted. squote Converts a single quote.

RETURN

The converted string.

EXAMPLES

in:  res={{htmlspecialchars("'aa&<>xa")}}.
out: res='aa&<>xa.

in:  res={{htmlspecialchars("'aa&<>xa",true)}}.
out: res='aa&<>xa.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.