I have a text box like ,
<!--<input type="text" maxlength="255" name="$key" value="<?php echo $value;?>" />-->
$value is b’bbb”bbb
But it only shows b’bbb as value.Can any1 help ???
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.
Properly escape your data that should be displayed unparsed in HTML using
htmlentities():The quote char (
") is breaking your code. It could get more dangerous if you’ve a$valuelike"><script>alert("xss")</script>(it’s called XSS and will pop up an alert box with “xss”)