【发布时间】:2014-01-15 16:26:42
【问题描述】:
内容:
Various html here
<script language="javascript" type="text/javascript">
<p>
valid.js.here
</p> <p>
more.valid.js.here
</p>
</script>
more htmls here
我试过了
preg_replace('#<script[^>]*>(<p>|</p>)</script>#is', '', $content);
和其他变体。基本上,这是 wordpress 的精彩 wpautop。不,我无法通过其他各种方式关闭 autop。
【问题讨论】: