View Full Version : Question...
Luckyrare
14-03-2007, 07:56 PM
Right, if I want to show </textarea> in a textbox without closing it (the tag), how can I do it?
eg
<textarea>
Hello, here is my text box <textarea></textarea>
</textarea>
Thanks
<textarea>
Hello, here is my text box <textarea><code></textarea></code>
</textarea>
I think.
Luckyrare
14-03-2007, 08:07 PM
<textarea>
Hello, here is my text box <textarea><code></textarea></code>
</textarea>I think.
Hello, nah that does not work; rep anyway. Anyone got any other ideas?
htmlentities (http://www.php.net/htmlentities)
or without php:
Open tag:
<textarea>
Close tag:
</textarea></span>
Luckyrare
14-03-2007, 08:11 PM
htmlentities (http://www.php.net/htmlentities)
Thank you tom-*** <3
No problem, but you should know this as it is part of PHP security :P
You never echo any html generated by a user without running it in htmlentities else your site is open to XSS (cross-site scripting).
Thank you tom-*** <3
Luckyrare
14-03-2007, 08:17 PM
You never echo any html generated by a user without running it in htmlentities else your site is open to XSS (cross-site scripting).
Yuh m8. I have used the function before, I couldnt remember/find it
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.