Create <p> tag, do not use existing tags

This commit is contained in:
Francesco Siddi 2017-06-07 18:59:46 +02:00
parent 31b71eb244
commit 5ce78a2fb3

View File

@ -97,7 +97,7 @@ script.
templates: {
suggestion: function (hit) {
var suggestion = hit.full_name + ' (' + hit.username + ')';
var $p = $('p').text(suggestion);
var $p = $('<p>').text(suggestion);
return $p.html();
}
}