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",
regex: "<\\/(?=script)",
next: "tag"
}], ["js-start"]);
}]);
this.embedRules(CssHighlightRules, "css-", [{
token: "text",
regex: "<\\/(?=style)",
next: "tag"
}], ["css-start"]);
}]);
};
oop.inherits(HtmlHighlightRules, TextHighlightRules);