Possible Duplicate:
How to display HTML tags as plain text
echo "<b>test</b>";
I want to echo this exactly what I write.
<b>test</b>
Not a bold test.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pretty simple, just use htmlspecialchars:
htmlentities will have the same effect, but its output will be slightly different in some cases – see the docs for details.