Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: HTML tags to be filtered out

by le (Friar)
on Aug 23, 2000 at 20:45 UTC ( [id://29267]=note: print w/replies, xml ) Need Help??


in reply to HTML tags to be filtered out

Like a good firewall layout, it could be easier to define what's allowed, not what's forbidden.

My vote is for B, I, OL, UL, LI, A (although this could be a hole too), HR, BR, P; maybe IMG, maybe Hx, maybe PRE and maybe TT.

Replies are listed 'Best First'.
RE: RE: HTML tags to be filtered out
by turnstep (Parson) on Aug 23, 2000 at 21:10 UTC

    Well, since we've started the "Allowed" list already, I'll add my $0.02, and rearrange the list from what I see as the least to most controversial:

    • CODE (of course)
    • STRONG, EM, B, I
    • BR, P
    • <!-- (comments - take a look, you might be surprised at what is already there!)
    • UL, OL, LI, MENU
    • DL, DT, DD (well, I still use them anyway)
    • BLOCKQUOTE (I use this often actually)
    • TT, ADDRESS
    • PRE (perlmonk's code does not always cut it)
    • SUB, SUP
    • A
    • DIV
    • HR

    Almost all of them should require a matching close code as well.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://29267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2025-01-21 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (61 votes). Check out past polls.