HTML in the input field value

后端 未结 5 1804
醉酒成梦
醉酒成梦 2020-12-06 04:48

How can I get HTML to work in the value of the input field ? If you include HTML in the value, it appears as pure text. Is there a way to do something like this?

5条回答
  •  余生分开走
    2020-12-06 05:45

    You can try to decode you entities from your postvalue. In PHP you can do this with html_entity_decode();

提交回复
热议问题