Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

terminate all font styles?

Status
Not open for further replies.

RobBroekhuis

Technical User
Oct 15, 2001
1,971
US
I have a forum application with many users. I like to give the users the freedom to spruce up their posts by injecting a little html, so I don't strip codes. Only problem is when users forget to put an end-code in - then the attributes continue into the next post. Short of doing a lot of syntax checking, is there an easy way to just make any html codes that appear within a certain section of a page "expire" after that section?


Rob
[flowerface]
 

You could enclose each post in a borderless iframe - that should work, although I've never tried it ;o)

Failing that, you'd need to parse the code (either server-side or client-side), and insert the relevant missing codes.

I'm sure there are other ways, but the iframe could be a quick-win.

Hope this helps,

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top