How do use fckEditor safely, without risk of cross site scripting?
问题 This link describes an exploit into my app using fckEditor: http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html How do I make my app secure while still using fckEditor? Is it an fckEditor configuration? Is it some processing I'm supposed to do server-side after I grab the text from fckEditor? It's a puzzle because fckEditor USES html tags for its formatting, so I can't just HTML encode when I display back the text. 回答1: Sanitize html server-side, no other choice. For PHP it