Skip to content

__escapeHtml

JMeter __escapeHtml 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 which escapes the characters in a String using HTML entities. Supports HTML 4.0 entities.

For example,

Terminal window
\${__escapeHtml("bread" & "butter")}

return: "bread" & "butter".

Uses StringEscapeUtils#escapeHtml(String) from Commons Lang.

NameRequiredDescription
String to escapeYesThe string to be escaped.
On this page