-
Notifications
You must be signed in to change notification settings - Fork 607
Open
Description
Adding an item containing html tags to the list, such as the text: Text escaping: <xyz>tag</xyz> will yield incorrect suggestions.
Setup
<input id="myinput" />
<script>
var input = document.getElementById("myinput");
new Awesomplete(input, {
minChars: 1,
list: ["Text escaping: <xyz>tag</xyz>"]
});
</script>
or
<input class="awesomplete" data-list="#mylist" data-minchars="1" />
<ul id="mylist">
<li>Text escaping: <xyz>tag</xyz></li>
</ul>
Results
Typing the letter 't' in the input box will give the following incorrect suggestion (missing the <xyz> and </xyz> that was surrounding the word 'tag'):

Typing the letter 'x' in the input box will give the following incorrect suggestion (notice the missing '<' after the word "tag" in the suggestion):

Metadata
Metadata
Assignees
Labels
No labels