Skip to content

escapeHTML

Overview

Escaping of HTML content that will be placed in the body, inside an element as a node.

This is NOT for escaping something in other HTML contexts, for example as an attribute value

@author Jonathan Olson <jonathan.olson@colorado.edu>

Source Code

See the source for escapeHTML.ts in the phet-core repository.