EN
HTML - ampersand escape code
10 points
In this short article, we would like to show how to escape ampersand characters in HTML source code.
Quick solution:
Replace & with the & in the HTML source code. |
xxxxxxxxxx
1
2
<html>
3
<body>
4
<p>This text contains & characters.</p>
5
</body>
6
</html>
SCREENSHOT (in React / Preact / HTML it is necessary to escape ampersands same way):
