Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter flapane

    (@flapane)

    any one?

    Thread Starter flapane

    (@flapane)

    mmmh, so any other way to do a textarea?

    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.

    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.

    Thread Starter flapane

    (@flapane)

    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

    Thread Starter flapane

    (@flapane)

    ne1?

    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.

    Thread Starter flapane

    (@flapane)

    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.

    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.

    Hi,

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

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Textarea shows html tags’ is closed to new replies.