Skip to content

Commit

Permalink
MDL-47002 editor_atto: Clean the comments separately
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao authored and Damyon Wiese committed Mar 26, 2015
1 parent 87f1d0a commit dd504ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -662,7 +662,7 @@ EditorClean.prototype = {

// Source: "http://www.codinghorror.com/blog/2006/01/cleaning-words-nasty-html.html"
// Remove forbidden tags for content, title, meta, style, st0-9, head, font, html, body, link.
{regex: /<\/?(?:title|meta|style|st\d|head|font|html|body|link|!\[)[^>]*?>/gi, replace: ""}
{regex: /<\/?(?:title|meta|style|st\d|head|font|html|body|link)[^>]*?>/gi, replace: ""}
];

return this._filterContentWithRules(content, rules);
Expand Down

0 comments on commit dd504ed

Please sign in to comment.