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?
2.1m questions
2.1m answers
60 comments
57.0k users