---
title: "escapeHTML()"
slug: "string-escape-html"
updated: 2026-08-17T06:21:03Z
published: 2026-08-17T06:21:03Z
canonical: "docs.lobstersoftware.com/string-escape-html"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.
# escapeHTML()
If parameter **b** has the value *true*, the function modifies a text **a** so that it can be used in an HTML text/file, i.e. characters that are reserved in HTML are masked.
If **b** has the value *false*, a masked text **a** is converted into an unmasked one, i.e. the reverse way. See examples below.
## Parameters
| Parameter | Description |
| --- | --- |
| a | Text. |
| b | *true*, if masking is to be applied. *false*, if masking is to be undone. Default: *true* |
## Examples
| Parameter a | Parameter b | Result |
| --- | --- | --- |
| a < b && b > c | true | a < b && b > c |
| a < b && b > c | false | a < b && b > c |