How do I remove HTML tags from a string?
<?php
$mystring = "I said <ignore me then!>you <b>are a little bit</b> whack!";
echo strip_tags($mystring);
?>
Which prints:
I said you are a little bit whack!
Comment on this Question and Answer >>>
ASK A QUESTION
More forms PHP Questions
How can I check that a data value is alphanumeric?if i send values to database ,but in that table zeros is added ,how can i rectify the error
I am having a form. Here, i am submitting the form using java script as its necessary. If the form method is get, i am able to get in redirection page and can get the hidden values in the form. But if the form method is post, i am not able to get those hi
Can I use a variable from a .php file to give a value to an HTML FormMail form field thus: ? Thank you
How do you email the contents of a form to someone?
