PDA

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

F32
14-03-2007, 07:59 PM
<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?

Tomm
14-03-2007, 08:08 PM
htmlentities (http://www.php.net/htmlentities)

or without php:

Open tag:

&lt;textarea&gt;

Close tag:


&lt;/textarea&gt;</span>

Luckyrare
14-03-2007, 08:11 PM
htmlentities (http://www.php.net/htmlentities)

Thank you tom-*** <3

Tomm
14-03-2007, 08:13 PM
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!