escape_html()
Usage
escape_html(string)
Description
Replaces special characters in text with their HTML entities, e.g. &
with &
.
Example
${escape_html('Test & Test"')}
results in
Test & Test
You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.
Usage
escape_html(string)
Description
Replaces special characters in text with their HTML entities, e.g. &
with &
.
Example
${escape_html('Test & Test"')}
results in
Test & Test
Reverses the effect of escape_html().
unescape_html(string)
Replaces special characters in text with their HTML entities, e.g. &
with &
.
Supports all known HTML 4.0 entities, including funky accents.
escape_html(string)