I have a string with HTML entities in PHP. In html source i can see the html Entities but in the output my string is without html Entities.
like :
HTML source :<
See: http://php.net/manual/en/function.html-entity-decode.php
The function
html_entity_decode()
.This function decodes all the entities (including all numeric entities) that a) are necessarily valid for the chosen document type — i.e., for XML, this function does not decode named entities that might be defined in some DTD — and b) whose character or characters are in the coded character set associated with the chosen encoding and are permitted in the chosen document type. All other entities are left as is.