How to remove
tags and more from a string?

前端 未结 7 1702
一生所求
一生所求 2020-12-04 00:08

I need to strip all
and all \'quotes\' (\") and all \'ands\' (&) and replace them with a space only ...

How c

7条回答
  •  醉话见心
    2020-12-04 00:53

    To remove all permutations of br:





    check out the user contributed strip_only() function in

    http://www.php.net/strip_tags

    The "Use the DOM instead of replacing" caveat is always correct, but if the task is really limited to these three characters, this should be o.k.

提交回复
热议问题