私は次のような変数を持っています
$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);
すべての「a」を使用すると、削除されます。ただし、<script>
タグ内の「a」は削除しないでください。
または、この方法以外のテキストを置き換える方法はありますか
助けてください 。