I want my page to display <br>Hello!
. But if I use
JavaScript
x
echo "<br>Hello!";
Then the <br>
string is not displayed, but a newline is displayed instead. How can I fix this? Thanks
Advertisement
Answer
Use entities”
JavaScript
echo "<br>Hello!";
OR <xmp>
tag in HTML:
JavaScript
echo '<xmp><br>hello</xmp>'