10
我已經使用strip_tags從文本中刪除html標籤。問題在php中使用strip_tags
例
<h1>title of article</h1><div class="body">The content goes here......</div>
outputs
title of articleThe content goes here......
如果看到輸出標題和主體接合(articleThe)。如果標籤已被刪除,我想插入一個空格。這可能嗎。
我很感激任何幫助。
謝謝。
優秀。解決了我的問題 – Thomas 2011-12-11 17:32:22
請記住,這將在例如'高點燃'。 – Yogu 2013-09-08 16:35:00
@Yogu不,它沒有:https://regex101.com/r/dK0aJ4/1 – 2015-04-29 01:00:47