I need your help with a really simple issue. Article Contents of some pages on my website are stored in MySQL database, and I've applied htmlspecialchars() to it when outputting to the browser, but actually there are legitimate <img src="images/me.jpg">
, which are rendered as plain text, meanwhile they are supposed to be valid images part of the article content.
How can I successfully display the image and at the same time avoid a possible XSS attack and the likes.
Thanks