in reply to JavaScript is indeed a bad thing
in thread JavaScript allowed in posts!

Great idea about limiting the HTML

You seem to have forgotten the <STRONG> and <EM> tags. Those of us who have been doing HTML for a while know that these are more correct than using <B> and <I>. <CENTER> should not be included as it has been deprecated.

In addition, we should consider:

This should be a start, and there are already modules that can help out with the matching of tags and filtering.

Replies are listed 'Best First'.
RE: Allowed/forbidden HTML
by . (Acolyte) on Jun 10, 2000 at 08:21 UTC
    The 'offer your reply' page should have a preview button :)

    STRONG was created by a false analogy. EM is for emphasis, that makes sense, but what does STRONG mean? In reality, STRONG and EM represent different levels of emphasis.

    Nir Dagan said on the www-html list:

    A common myth is that <strong> is better than <b> since it gives the user (or browser) the option to control the style better. This is wrong since <b> and <strong> all have the same syntax properties in HTML and admit the same style rules.
    Jon Roland Eriksson on the www-html mailing list:
    But a double <EM> sounds very close to <STRONG> to me.
    Please consider the text from RFC1866...

    5.7.1.3. Emphasis: EM
    The <EM> element indicates an emphasized phrase, typically rendered as italics.

    5.7.1.6. Strong Emphasis: STRONG
    The <STRONG> element indicates strong emphasis, typically rendered in bold.
    ....please note that both headlines up there addresses the same thing, just at two different levels of strength.
    However, in the case of I vs. EM, EM still wins. I sets the enclosed text in italics no matter the context. But this means <i> level 1<i> level 2</i></i> is rendered completely in italics making level 2 indistinquishable from level 1. EM does not have this problem: <em>level 1<em> level 2</em></em> renders level 1 in italics and level 2 in upright text.

    I'm sure you're thinking "who cares" by now... but it's important to note STRONG is not better than B while I is better than EM.