I followed this w3schools tutorial to build a form autocomplete (full code on the link):
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_autocomplete
The problem is every item in the list that contains the ' character is not rendered correctly. I thought I made a mistake but in the example code the same problem happens for "Timor L'Este" rendered as "Timor L".
Escaping ' does not seem to work. Could anyone provide a solution?
1.4m articles
1.4m replys
5 comments
57.0k users