开发者

preg_replace html ascii

开发者 https://www.devze.com 2023-04-10 04:42 出处:网络
I\'m trying to remove HTML Ascii codes, how do I go about removing something like: &#开发者_StackOverflow中文版039;

I'm trying to remove HTML Ascii codes, how do I go about removing something like: &#开发者_StackOverflow中文版039;

I tried '/&#[a-zA-Z0-9\s];/' but it didn't work.

Any ideas of how to do this?


It would be '/&#[a-zA-Z0-9]+?;/' if that's what you want to do. I added a plus sign which means one or more of the preceding identifiers.

0

精彩评论

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