开发者

return quotes to html

开发者 https://www.devze.com 2023-02-15 05:47 出处:网络
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 pre

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);
0

精彩评论

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