Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7

Thread: Question...

  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default Question...

    Right, if I want to show </textarea> in a textbox without closing it (the tag), how can I do it?

    eg

    HTML Code:
    <textarea>
    Hello, here is my text box <textarea></textarea>
    
    </textarea>
    Thanks

  2. #2
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    Code:
    <textarea>
    Hello, here is my text box <textarea><code></textarea></code>
    
    </textarea>
    I think.
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Xeoro View Post
    Code:
    <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?

  4. #4
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    htmlentities

    or without php:

    Open tag:
    HTML Code:
    &lt;textarea&gt;
    Close tag:

    HTML Code:
    &lt;/textarea&gt;
    </span>
    Last edited by Tomm; 14-03-2007 at 08:11 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Tomm View Post
    Thank you tom-***

  6. #6
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    No problem, but you should know this as it is part of PHP security

    You never echo any html generated by a user without running it in htmlentities else your site is open to XSS (cross-site scripting).

    Quote Originally Posted by Luckyrare View Post
    Thank you tom-***

  7. #7
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Tomm View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •