开发者

When and how to validate HTML using contenteditable?

开发者 https://www.devze.com 2022-12-26 06:49 出处:网络
I\'m exploring the idea of using contenteditable on a website at visitor comments and at a message board.

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

精彩评论

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

关注公众号