Escape from all js/css embedded inside html
This commit is contained in:
parent
58cf406fbd
commit
97c4e880fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue