Paolo Broccardo
Paolo Broccardo

Reputation: 1744

Coldfusion RegEx replace html characters like  

I currently have code to remove html from a string:

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

However, this does not remove html characters like &nbsp;

What Regex could I use to ReReplace these characters??

Thanks

Upvotes: 3

Views: 4641

Answers (1)

Stephan
Stephan

Reputation: 43053

For removing &nbsp; and other similar strings :

&[^;]+?;

HTH

Upvotes: 8

Related Questions