Skip to content

__unescapeHtml

JMeter __unescapeHtml function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

Function to unescape a string containing HTML entity escapes to a string containing the actual Unicode characters corresponding to the escapes. Supports HTML 4.0 entities.

For example, the string

Terminal window
\${__unescapeHtml(<Français>)}

will return <Franรงais>.

If an entity is unrecognized, it is left alone, and inserted verbatim into the result string. e.g. \${__unescapeHtml(>&zzzz;x)} will return >&zzzz;x.

Uses StringEscapeUtils#unescapeHtml(String) from Commons Lang.

NameRequiredDescription
String to unescapeYesThe string to be unescaped.
On this page