HTMLencode HTMLdecode

后端 未结 3 1730

I have a text area and I want to store the text entered by user in database with html formatting like paragraph break, numbered list. I am using HTMLencode and HTMLdecode fo

3条回答
  •  无人共我
    2021-01-13 14:51

    HTML doesn't recognize \r\n as a line break. Convert them to "p" or "br" tags.

提交回复
热议问题