#3869: Script with comment --------------------------------+------------------------------------------- Reporter: arczi | Owner: arczi Type: Bug | Status: assigned Priority: Normal | Milestone: CKEditor 3.0 Component: Core : Output Data | Version: Keywords: Review- | --------------------------------+------------------------------------------- Changes (by garry.yao):
* keywords: Review? => Review- Comment: You're always sensitive to various ways of comments ;), maybe the implementation could be further simplified by eliminate the encoding of '''comments inside script tag''' at first place instead of restore it later. {{{ var regexes = [ // Script tags will also be forced to be protected, otherwise // IE will execute them. /<script[\s\S]*?<\/script>/gi, // <noscript> tags (get lost in IE and messed up in FF). /<noscript[\s\S]*?<\/noscript>/gi, // We must protect all comments // to avoid loosing them (of course, IE related). /<!--(:?!{cke_protected})[\s\S]*?-->/g, ] }}} -- Ticket URL: <http://dev.fckeditor.net/ticket/3869#comment:3> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac