How to echo html tags using PHP -
i want print html tags on screen. not getting how escape html tags.
expected output
<div>hey, can see div tag on screen.</div>
the div
tags shouldn't taken in html tags instead want print them on screen. how can that?
echo htmlspecialchars('<div>hey, can see div tag on screen.</div>');
Comments
Post a Comment