Hmm. Instead of "defanging" input or using some kind of regex to remove tags, how safe is it to dump user stuff into a <textarea>
?
For example, say there's a PHP page that does the following:
echo '<textarea>';
echo $_GET['whuh_you_say'] ;
echo '</textarea>';
Normally this is vulnerable to xss attacks, but in the textarea
, all script tags will just show up as <script>
and they won't be executed.
Is this unsafe?