开发者

preg_replace html ascii

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜