I'm struggling with the simple syntax of outputting HTML entities.
For the sake of simplicity:
document.write("é");
I want to output é
as é
.
I've tried it with quotation marks, apostrophes, and no marks.
The only way I've managed to get it to work is /é/
but that outputs /é/
.
Can somebody inform me of the correct way of doing this (and if possible explain why the slashes are doing their thing)?
I'm not familiar with jQuery so I'd appreciate if you keep answers in core JavaScript.