I have site that display news, in mysql db, it stores html code then it displays like this <p><strong><sub><font size="3">By </font></sub></strong><a when you do display source from browser, <p><strong><sub><font size="3">By </font> any idea? why <p> fetched <p>?
The tags are being converted. Before displaying, you may need to run the data returned from the MySQL database through html_entity_decode, as in $string = '<p><strong><sub><font size="3">By </font>'; $string = html_entity_decode( $string); echo $string; Code (markup):