-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Hello. Have an issue with HTML Entities started with & and finished with ;.
Example:
export function createTask (task, index) {
return html`
<li>
<label>
<input type="checkbox" onclick="${onTaskChange}" value=${index} ${task.done ? 'checked': ''} />
${task.name}
<button onclick="${onTaskRemove}" data-index=${index}>×</button>
</label>
</li>
`;
}Here inside <button> tag we see HTML Entity × that escaped and do not insert in DOM as correct symbol ×.
Another problem if we instead × insert UTF-8 char ×. It do not parsed correctly and insert to DOM broken UTF-8 symbol Г—.