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!

HTML code disable

Status
Not open for further replies.

lardum

IS-IT--Management
Joined
Apr 26, 2000
Messages
462
Location
SE
i have a kind of own developed forum. unfortunately this forum accept any kind of text including HTML code. Sometimes the visitors posts a redirect link to another site. Is there any way i can check the postings for HTML code?
 
You can do this in the script that writes the text to a file, and if you already have unwanted items in the file, use the same function before writing the text to the page where it's displayed.

Lee
 
Take a look at the strip_tags() function. I think you will see that is something you might be looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top