Escape from all js/css embedded inside html

This commit is contained in:
c-spencer 2011-05-25 23:14:17 +01:00
commit 97c4e880fe

View file

@ -182,13 +182,13 @@ var HtmlHighlightRules = function() {
token: "text", token: "text",
regex: "<\\/(?=script)", regex: "<\\/(?=script)",
next: "tag" next: "tag"
}], ["js-start"]); }]);
this.embedRules(CssHighlightRules, "css-", [{ this.embedRules(CssHighlightRules, "css-", [{
token: "text", token: "text",
regex: "<\\/(?=style)", regex: "<\\/(?=style)",
next: "tag" next: "tag"
}], ["css-start"]); }]);
}; };
oop.inherits(HtmlHighlightRules, TextHighlightRules); oop.inherits(HtmlHighlightRules, TextHighlightRules);