Escape HTML

From UBot Studio
Revision as of 23:47, 17 June 2015 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 [here|http://www.w3schools.com/html/html_entities.asp].

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