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",
|
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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue