在Hotmail的天才决定混合单'
和双引号"
在HTML电子邮件属性为lulz。这就不必要的,因为我试图让body元素的class和id在某些情况下从中删除过复杂的事情CSS选择器,在这里显然不能进行基本的字符串替换。
I realized that PHP's DOMDocument class does this automatically...
libxml_use_internal_errors(true); //use this to prevent warning messages from displaying because of the bad HTML
$html = new DOMDocument();//'1.0','UTF-8'
$html->xmlStandalone = false;
$html->loadHTML($b);
$b = $html->saveXML();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.