mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Add StringUtils.htmlEscape() back in.
Remove "types" from a tern query since types are not hinted for identifiers or properties.
This commit is contained in:
1 parent
42ad4f7979
commit
7d52361aa7
2 files changed
+4
-5
No files matched your search
@@ -114,9 +114,9 @@ define(function (require, exports, module) {
|
||||
|
||||
// higlight the matched portion of each hint
|
||||
if (query.length > 0 && index >= 0) {
|
||||
var prefix = hint.slice(0, index),
|
||||
match = hint.slice(index, index + query.length),
|
||||
suffix = hint.slice(index + query.length);
|
||||
var prefix = StringUtils.htmlEscape(hint.slice(0, index)),
|
||||
match = StringUtils.htmlEscape(hint.slice(index, index + query.length)),
|
||||
suffix = StringUtils.htmlEscape(hint.slice(index + query.length));
|
||||
|
||||
$hintObj.append(prefix)
|
||||
.append($("<span>")
|
||||
|
||||
Reference in new issue
Block a user