how to show <html> in textarea

后端 未结 2 1284
闹比i
闹比i 2020-12-21 18:26

In textarea, I load text from database and then show in textarea. I have a problem, textarea not show < and >. It has been changed to

2条回答
  •  孤城傲影
    2020-12-21 18:49

    You may also want to use the Entity Number. It depends on the page character set. For ISO-8859-1 you would do "<(semicolon)" and ">(semicolon)". replace the "(semicolon)" part with ; ... This just shows that this page supports it too :)

    For a complete list view HTML ISO-8859-1 Reference

提交回复
热议问题