I have a website with PHP page - "input.php" which takes input from the user from a text-area. There is another page - "output.php". In output.php, I display the input from the user. Now, I want that if the user enters HTML codes like <a href="http://blah-blah.com">Blah Blah</a> in the text-area in "input.php", the output should not be a link. I want to convert the input in such a way, that in the SQL table, data is stored like the following :
a href="http://www.blah-blah.com/">Blah blah</a>
Any other method to avoid displaying the link will also be appreciated by me.
Thanks in advance.
#characters #convert #entities #html #special #sql