php: replacing double
with

前端 未结 3 716
忘掉有多难
忘掉有多难 2021-01-17 14:22

i use nicEdit to write RTF data in my CMS. The problem is that it generates strings like this:

hello first line

this is a second line<
3条回答
  •  不要未来只要你来
    2021-01-17 15:17

    I think this should work for step #2 unless I am not understanding your scenario completely:

    $string = str_replace( '

    ', '

    ', $string ); $string = str_replace( '

    ', '

    ', $string ); $string = str_replace( '

    ', '

    ', $string ); $string = str_replace( '

    ', '

    ', $string );

提交回复
热议问题