dpf56454 2014-03-30 11:06
浏览 64
已采纳

textarea中的换行符

<textarea><?php echo "Hello <br/> word!";?></textarea>

Output is:

Hello <br/> word!

My question is how to get line break,but not display <br/> ?

  • 写回答

1条回答 默认 最新

  • duanping1632 2014-03-30 11:10
    关注

    Use instead of <br/>. But make sure you use " instead of ', like the example below.

    <textarea><?php echo "Hello
    World!";?></textarea>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?