mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-47002 editor_atto: Clean the comments separately
This commit is contained in:
parent
cca1142f0e
commit
d784f5edc3
@ -1122,7 +1122,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);
|
||||
|
File diff suppressed because one or more lines are too long
@ -1112,7 +1112,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);
|
||||
|
2
lib/editor/atto/yui/src/editor/js/clean.js
vendored
2
lib/editor/atto/yui/src/editor/js/clean.js
vendored
@ -97,7 +97,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user