0

Possible Duplicate:
HTML filter that is HTML5 compliant

I've been searching for days now and cannot find the answer to it. Is there any purifier written in PHP for html5?

To clarify - by purify I mean filter for HTML5 which converts special characters but leaves html tags.

Community
  • 1
  • 1
user398341
  • 6,339
  • 17
  • 57
  • 75
  • See `html5lib` and [HTML filter that is HTML5 compliant](http://stackoverflow.com/questions/5667857/html-filter-that-is-html5-compliant) if that was your question. – mario Oct 27 '11 at 17:50
  • html5lib seem to require installation before it can be used - is there any PHP class ready to be used - as much as I appreciate it I can't really ask everyone to install new library on their servers. – user398341 Oct 27 '11 at 18:07
  • Installed? It just needs to be uploaded. -- If you want built-in PHP functions, then your will have to limit yourself to `strip_tags`, `htmlspecialchars` and `tidy`. Neither of which satisfies your original request. – mario Oct 27 '11 at 18:09
  • just uploaded? - I've been going through the documentation and it looks like it needs to be installed - can you show me how you'd use it without installing it first? – user398341 Oct 27 '11 at 18:37

0 Answers0