See my above note on this idea. The problem is that I want folks to be able to create a technote (in a textread form) that contains any html tag, and save it exactly as typed, and then have them be able to edit that exact text again later, without some of those tag being interpreted as tags for the page instead of text in the textarea. If I modify the content like that, then a user types in one thing and ends up editing another.

Then again, if I told folks not to escape, and I escaped for them before saving the file, then that just might work... then any tags would be saves with escapes, and displayed as text and not interpreted. The only problem with this is if you type, say, <pre> </pre> inside a textarea - that doesn't get interpreted, so I would be escaping things that don't need it, but I suppose that might be alright.

Actually, that get ugly, because, then all of the tags that I am telling people to use to format the text of the technote will now not be tags that format the text when displayed later in a table, they will show as text, unless I unescape all before displaying to the table.

That get's messy, but it may be the only way...

Any other ideas?


In reply to Re: Re: HTML Problem getting entities into a textarea by muad33b
in thread HTML Problem getting entities into a textarea by muad33b

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.