Commit 4dec46e5 authored by hj's avatar hj

更新提交

parent 16a7d976
...@@ -39,8 +39,8 @@ class ChemicalsMsdsService ...@@ -39,8 +39,8 @@ class ChemicalsMsdsService
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">', $msds_html); <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">', $msds_html);
preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle); preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle);
$msds_html = preg_replace('/<dd>[\s]*?<p>/i', '<dd>', $msds_html); $msds_html = preg_replace('/<dd>[\s]*?/i', '<dd><p>', $msds_html);
$msds_html = preg_replace('/<\/p>[\s]*?<\/dd>/i', '</dd>', $msds_html); $msds_html = preg_replace('/<\/dd>/i', '</p></dd>', $msds_html);
$msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '@body@', $msds_html); $msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '@body@', $msds_html);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment