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.
精彩评论