Commit 6cfbe5bc authored by hj's avatar hj

更新提交

parent 3b1dac78
......@@ -72,7 +72,7 @@ class ChemicalsMsdsService
preg_match_all('/<dt>(?<cTitle>[\s\S]*?)<\/dt>[\s]*?<dd[\s\S]*?>(?<cContent>[\s\S]*?)<\/dd>/i', $dl, $ddContent);
if($ddContent){
foreach($ddContent['cTitle'] as $k => $c){
$dlHtml .= '<div><span style="margin: 0;">'.$c.'</span>';
$dlHtml .= '<div><span style="margin: 0;"><b>'.$c.'</b></span>';
$dlHtml .= '<span style="font-weight: normal">'.$ddContent['cContent'][$k].'</span></div>';
}
}
......
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