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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -