Disable tags

A

Anonymous

Guest
Hi! I'm working on a community where you can create your own site and write about your self.
But now I've discovered a problem. Some people writes html-code in their sites so it looks really fucked up.
Is there any way i do so instead of that the html being read as html-code, it's being read as ordinary text.
 
If you want to get rid of all HTML, just use strip_tags(). If you want to keep the HTML but display the code (instead of getting rendered and screwing up your layout), then use htmlspecialchars().
 
Back
Top