Brightscript Debugger> html = "<tag>hi there<another tag/><tag2> <TAG3>MORE</tag3>"
Brightscript Debugger> ? html
<tag>hi there<another tag/><tag2> <TAG3>MORE</tag3>
Brightscript Debugger> r = CreateObject("roRegex", "<.*?>", "") : ? r.ReplaceAll(html, "")
hi there MORE
Brightscript Debugger> html = "\r\n\tHELLO \r\r\rHOW ARE YOU?"
Brightscript Debugger> ? html
\r\n\tHELLO \r\r\rHOW ARE YOU?
Brightscript Debugger> r = CreateObject("roRegex", "(\\r|\\t|\\v|\\n)", "") : ? r.ReplaceAll(html, "")
HELLO HOW ARE YOU?
Brightscript Debugger> html = "<ol>\r\n\t<li>We use Personal Data to allow you to participate in the features on the Site, to process your registration, and to provide you with other requested content related to our content and other offerings. Click here to learn more </li></ol>"
' strip html tags
Brightscript Debugger> r = CreateObject("roRegex", "<.*?>", "") : html = r.ReplaceAll(html, "")
' strip carriage return, tab, vertical tab, newline
Brightscript Debugger> r = CreateObject("roRegex", "(\\r|\\t|\\v|\\n)", "") : html = r.ReplaceAll(html, "")
Brightscript Debugger> ?html
We use Personal Data to allow you to participate in the features on the Site, to process your registration, and to provide you with other requested content related to our content and other offerings. Click here to learn more
' strip non breaking space entity
Brightscript Debugger> r = CreateObject("roRegex", " ", "") : ? r.ReplaceAll(html, "")
We use Personal Data to allow you to participate in the features on the Site, to process your registration, and to provide you with other requested content related to our content and other offerings. Click here to learn more