Removing HTML from a string

RegEx Add comments

Nice simple one to start off the week...but quite handy for formatting!

REReplaceNoCase(string,"<[^>]*>","","ALL")

Bookmark and Share

1 response to “Removing HTML from a string”

  1. Niall Says:
    Can also use this variation...

    &lt;cfset cleaned = REReplaceNoCase(string, &quot;&amp;lt;.*?&amp;gt;&quot;, &quot;&quot;, &quot;ALL&quot;)&gt;

Leave a Reply

Leave this field empty:

Powered by Mango Blog. Design and Icons by N.Design Studio