do not allow URL auto hyperlink using php

Don’t Display HTML Tags In Textbox

i have a textbox which i save the entered info into MySQL, but because i want to display this on a webpage i also save the HTML tags into the MySQL like so:

$product_description = htmlentities($_POST['product_description'], ENT_QUOTES);
$product_description = nl2br($product_description);
// write $product_description to database

This all works fine when the datadata is then retrieved and displayed on a web page.

But if u  don’t want to display  ”a” tag submitted and don’t want to display on the front end side.

means on user side so link but not as hyperlink

than u can use

$comPlaint = strip_tags($comPlaint, ‘<br /><p>’);

this will allow only br and p tag

u can use more tags to allow…