How to remove
tags and more from a string?

前端 未结 7 1696
一生所求
一生所求 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:56

    You can use str_replace like this:

      str_replace("
    ", " ", $orig );

    preg_replace etc uses regular expressions and that may not be what you want.

提交回复
热议问题