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:
dloverin committed 2013-04-09 14:35:29 -04:00
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>")