I would like to write an empty character. I'm learning javascript on w3School and stumbled upon this
<!DOCTYPE html>
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p id="demo">JavaScript can change HTML content.</p>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>
</body>
</html>
It's said that simple and double quote can be used, with little trickery i did this:
<!DOCTYPE html>
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p id="demo">JavaScript can change HTML content.</p>
<button type="button" onclick="document.getElementById("demo").innerHTML = " & quot; is &quot; "">Click Me!</button>
</body>
</html>
Which display after clicking the button: & quot; is " But the html special character for " is " and not & quot;
On the other hand, if I write this: &quot;
instead of & quot;
I get "
But if I take away the semicolon: &quot;
I do get "
I'm using chrome and I tried it on firefox, nonetheless, I suspect this behaviour to be unsafe and just be an extrapolation from the browser.
So,Is there a way to write an empty character in HTML?
That would allow me to write &&EMPTYHTMLCODE;quot;
to get the desired "
I've looked up: http://www.degraeve.com/reference/specialcharacters.php but didn't find anything.
NOTE: writing straight """ without separating " and; with ** (bold tags) will interpret """ as """