2
My doubt is simple, I think.
I receive via post the description:
$descricao = strip_tags(mysql_escape_string(trim($_POST['descricao'])));
And when I print on the screen I use:
nl2br($foto_user_visitado->descricao)
This should print on the screen the description recognizing the "enter" but how I put the function strip_tags
it does not show. How can I do? being that I want to escape all tags
html.
You can adapt the code using htmlentities($str); instead of strip_tags and then use other methods to remove tags.
– Roberto Araujo
You want to keep line breaks or tags
br
?– Kenny Rafael