Php- How to Encode Html content

# use to encode html tags.
it just encode the tags but not remove.

htmlentities($your_content, ENT_QUOTES);

 

Leave a Reply

Your email address will not be published. Required fields are marked *