I'm parsing web-page that contains html tags without quotes. Something like this <FONT COLOR=#FF0000>
but I need <FONT COLOR="#FF0000">
How return 开发者_JAVA百科quotes to html?
echo preg_replace('/(?<==)([^\s>]+)/', '"$1"', $handle);
I'm parsing web-page that contains html tags without quotes. Something like this <FONT COLOR=#FF0000>
but I need <FONT COLOR="#FF0000">
How return 开发者_JAVA百科quotes to html?
echo preg_replace('/(?<==)([^\s>]+)/', '"$1"', $handle);
精彩评论