Although I would tend to agree that coddling PM newbies too much encourages delayed development -- kind of like what's happening with the delayed emotional and ethical maturation of the rich, coddled, overprotected recent generations in North America and Western Europe (probably Japan too, though perhaps to a lesser degree) -- that doesn't mean that there isn't a reasonable possiblity here for making our lives simpler without taking away power and flexibility when that is desired. Although, I haven't been bothered too much by poorly formated node, I personally find it annoying to have to be throwing <p>'s in all over the place just to get separate paragraphs when the text I'm writing requires no special formatting.

I would suggest the following. A checkbox is added next to the textarea for creating new nodes. If checked the text is assumed to be 'plaintext' with no HTML in it. It gets filtered according to a very simple set of rules:

  1. Anything that looks like HTML gets escaped (>, <, &, etc.)
  2. All newlines are converted to <br />
The text thus filtered would be what gets stored in PM. This plaintext option would not be available for updating nodes, only for node creation, since in most cases some HTML would have already been added to the plaintext node by the system.

Advantages:

Disadvantages:
--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."


In reply to Re: Creating node should automatically add "<br>" by DrWhy
in thread Creating node should automatically add "<br>" by zejames

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.