开发者

When and how to validate HTML using contenteditable?

I'm exploring the idea of using contenteditable on a website at visitor comments and at a message board.

As I only wish to accept a white-list of HTML tags and attributes the question of wh开发者_StackOverflowen and how should I validate the entered HTML content comes up.

How would you do it? What cross-browser solutions would you choose to use? What events could be useful?


HTML Purifier is getting momentum these days.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜