开发者

Coldfusion RegEx replace html characters like  

开发者 https://www.devze.com 2023-02-19 01:54 出处:网络
I currently h开发者_StackOverflow社区ave code to remove html from a string: <cfset arguments.textToFormat = REReplaceNoCase(arguments.textToFormat,\"<[^>]*>\",\"\",\"ALL\") />

I currently h开发者_StackOverflow社区ave 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


For removing &nbsp; and other similar strings :

&[^;]+?;

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消