2
替換文本有這樣我如何忽略某些標籤和PHP
$content = "Lorem Ipsum is simply <b>dummy text of the printing</b> and typesetting industry.
Lorem Ipsum has been the industry's <i>standard dummy text</i> ever since the 1500s
<string>javascriptFunc();</script>" ;
變量當我使用str_replace('a', '', $content);
所有的「一的移除。但是<script>
標籤中的「a」不應被刪除。
還是有什麼方法可以替代此方法以外的其他文字
請幫忙。
也許 - 他不想剝離嵌套標籤(即腳本內的錨點),但是如果他想剝離「