mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Deprecate StringUtils.htmlEscape in favor of _.escape
This commit is contained in:
1 parent
dd6d266607
commit
d622884ab1
7 files changed
+32
-19
No files matched your search
@@ -26,6 +26,8 @@
|
||||
|
||||
define(function (require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var _ = brackets.getModule("lodash");
|
||||
|
||||
var CodeHintManager = brackets.getModule("editor/CodeHintManager"),
|
||||
EditorManager = brackets.getModule("editor/EditorManager"),
|
||||
@@ -131,10 +133,10 @@ define(function (require, exports, module) {
|
||||
token.stringRanges.forEach(function (item) {
|
||||
if (item.matched) {
|
||||
$hintObj.append($("<span>")
|
||||
.append(StringUtils.htmlEscape(item.text))
|
||||
.append(_.escape(item.text))
|
||||
.addClass("matched-hint"));
|
||||
} else {
|
||||
$hintObj.append(StringUtils.htmlEscape(item.text));
|
||||
$hintObj.append(_.escape(item.text));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user