我使用了strip_tags函数来从文本中删除HTML标签。
示例:
我感激任何帮助。
谢谢。
示例:
<h1>title of article</h1><div class="body">The content goes here......</div>
outputs
title of articleThe content goes here......
如果您看到输出标题和正文已经合并(articleThe),我想在标签被删除后插入一个空格。这可能吗?我感激任何帮助。
谢谢。
<b>high</b>lighted
中引入空格。 - Yogu