Escaping textarea content

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-20T14:06:11Z Indexed on 2010/03/20 23:31 UTC
Read the original article Hit count: 248

Filed under:
|
|
<textarea><?php echo htmlspecialchars($content)?></textarea>

Does content inside <textarea> need to be converted into HTML entities? Is htmlspecialchars necessary here? I tried with and without it, and both work for the content I used.

© Stack Overflow or respective owner

Related posts about html

Related posts about escaping