WordPress.org

Ready to get started?Download WordPress

Forums

Textarea shows html tags (12 posts)

  1. flapane
    Member
    Posted 5 years ago #

    Hi
    I added a textbox (textarea) in a post and pasted some text into it.
    Unfortunately the textbox show a lot of html tags into it.
    I am referring to http://www.flapane.com/blog/2009/03/sourceslist-per-repository-di-ubuntu-hardy-804-aggiornata-al-5-marzo-2009/

    Any hints? thanks!

  2. flapane
    Member
    Posted 5 years ago #

    any one?

  3. flapane
    Member
    Posted 5 years ago #

    mmmh, so any other way to do a textarea?

  4. phyllisgrover
    Member
    Posted 5 years ago #

    I'm new to wordpress, but based on my experience with cms, I'd say you need to copy the text into the html area, and not the visual area.

    Alternatively, try copying your text into a plain text editor, like notepad, which will not copy the formatting, which is probably what you've got right now. While it may look unformatted in the place you copied it from, there is most likely formatting, which are copying into your box.

  5. davesgonebananas
    Member
    Posted 5 years ago #

    The <textarea> tag is for accepting input in forms and only supports plain text. If you want to use html for form input you need to use a rich text editor, such as TinyMCE.

    This doesn't seem to be on a form though, so I would say <textarea> is not the right tag to use.

  6. flapane
    Member
    Posted 5 years ago #

    Hi,
    probably you didn't understand what happend.
    I wanted some plain text to be pasted in a text box, so I used the textarea tag.
    I'd have expected to see only plain text, but, as you can see, there are some strange html tags into it, and this shouldn't happen.
    Is this process wrong?
    thanks

  7. flapane
    Member
    Posted 5 years ago #

    ne1?

  8. davesgonebananas
    Member
    Posted 5 years ago #

    Hi again. So I understand what you are looking for.

    You are correct. If you just had plain text inside your <textarea></textarea> then you would have what you expected. However, there are html tags inside the textarea - which is why you are seeing them.

    Hope this explains it for you.

  9. flapane
    Member
    Posted 5 years ago #

    Hi there,
    no, I am afraid that we didn't understand ourselves :)
    There aren't html tags, they APPEAR after I post the article.
    As I wrote, I want to paste some plain text with some ubuntu repositories.

  10. chrisauman
    Member
    Posted 5 years ago #

    Yes, I am experiencing this same problem and WordPress seems to be adamant about inserting extra break and paragraph tags within my text area element. I'll post here if I find a solution.

  11. clinton4
    Member
    Posted 4 years ago #

    Hi,

    I have the same problem. Did anybody find a solution on this problem?

  12. Take out all the white space that's in between your textarea tags. WordPress will add <br />'s and <p>'s in response to white space in a post/page. If your textarea is in a template file, wordpress doesn't add those tags because template files are code files.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags