Escape HTML
From UBot Studio
(Difference between revisions)
(Created page with " 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:''' Th...") |
Revision as of 23:47, 17 June 2015
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.