Opposite of nl2br? Is it str_replace?

后端 未结 8 1658
旧时难觅i
旧时难觅i 2020-12-02 00:07

So the function nl2br is handy. Except in my web app, I want to do the opposite, interpret line breaks as new lines, since they will be echoed into a pre-filled form.

<
8条回答
  •  暖寄归人
    2020-12-02 00:44

        Bidibidi'); ?>
        Dear
        Bidibidi
    
        
        Dear
    Bidibidi

    http://php.net/manual/tr/function.strip-tags.php

提交回复
热议问题