Commit bde8376a authored by zhz's avatar zhz

goods

parent 9c21825e
...@@ -11,10 +11,11 @@ ...@@ -11,10 +11,11 @@
<?php <?php
$str = $commonInfo['goods_youku_url']; $str = $commonInfo['goods_youku_url'];
if($str) { if($str) {
preg_match('/iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match); // preg_match('/iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match);
if($match) { // if($match) {
echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>"; // echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>";
} // }
echo htmlspecialchars_decode($str);
} }
?> ?>
<?php echo $commonInfo['goods_body']; ?> <?php echo $commonInfo['goods_body']; ?>
......
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