Coldfusion RegEx replaces html characters with & nbsp;

I currently have code to remove html from a string:

<cfset arguments.textToFormat = REReplaceNoCase(arguments.textToFormat,"<[^>]*>","","ALL") />

However, this does not remove html characters such as &nbsp;

What can I use Regex to rereplace these characters?

thank

+3
source share
1 answer

To remove & nbsp; and other similar lines:

&[^;]+?;

NTN

+8
source

All Articles