View Single Post
Old 07-04-2004, 07:39   #9 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,205
Yeah, edited because the board thought I was entering it's own code at first.

Quote:
Originally Posted by Bill Posters
Also: if you're simply replacing ad-hoc tags with meaningful ones, why not simply get users to add their own <strong>…</strong> and <em>…</em> tags in the first place?

Because you don't really want a user to be able to enter their own (x)html and invalidate yours or worse, fuck up your layout.

Use htmlspecialcharacters() to neutralise any xhtml that the user enters but give them some "ad-hoc" tags to preform some basic formating.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote