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...") |
|||
Line 4: | Line 4: | ||
'''HTML to Escape:''' The HTML being escaped | '''HTML to Escape:''' The HTML being escaped | ||
− | To learn more about HTML equivalents, please see [ | + | To learn more about HTML equivalents, please see [http://www.w3schools.com/html/html_entities.asp|here]. |
== Example == | == Example == | ||
<pre> | <pre> |
Latest 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 [1].
[edit] 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.