error += "<li> this is not the name “.....” </li>\n"
Or, if you use a variant of English where single quotation marks are the norm, as usual in British English,
error += "<li> this is not the name ‘.....’ </li>\n"
Using proper punctuation marks, you won’t encounter problems with the quoting conventions of JavaScript. Computer languages use ASCII quotes, human languages don’t.
Just make sure your document is properly encoded (both Windows-1252 and UTF-8 would do here) and the encoding is properly declared.
0
Created by Jukka K. Korpela on 2020-03-11 22:57:07 +0000 UTC
Share