JMeter __escapeHtml function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.
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,
\${__escapeHtml("bread" & "butter")}return:
"bread" & "butter".
Uses StringEscapeUtils#escapeHtml(String) from Commons Lang.
| Name | Required | Description |
|---|---|---|
| String to escape | Yes | The string to be escaped. |