Escape HTML

From UBot Studio
Jump to: navigation, search

This function is an Advanced Text function in the UBot Extended Library. This function will convert HTML characters to their entity equivalents.

HTML to Escape: The HTML being escaped

To learn more about HTML equivalents, please see [1].

Example

set(#sampletext,"<p>This text is normal.</p>

<p><b>This text is bold</b>.</p>","Global")
alert($escape html(#sampletext))


Running the script will replace all html within the string with their equivalents.


Htmlesc.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox