PHP - 包含HTML的HTML表单TEXTAREA

I'm using a HTML form's TEXTAREA field that will contain text and it may can contain itself some HTML tags. I have read here that this should be managed using htmlspecialchars function, however this will show the HTML tags in a way it will be quite difficult to allow easy editing of the HTML code into the form TEXTAREA. What is the safer, easier way to achieve this, ensuring that quotes and "dirty" HTML code will not spoil the form?

查看全部
dpz7935
dpz7935
2010/09/23 10:11
  • textarea
  • php
  • html
  • forms
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复