WackoWiki: SafeHTML

https://wackowiki.org/doc     Version: 25 (24.05.2023 14:48)

SafeHTML


SafeHTML is anti-XSS HTML parser, written in PHP.

written and distributed under the BSD License[link6]

About this project

This parser strips down all potentially dangerous content within HTML:

It also tries to convert code to valid HTML, but htmltidy is far better solution for this task.

Whats new?

1.3.12
1.3.11.
1.3.10.
1.3.9.
1.3.8
1.3.7.
1.3.6.
1.3.5.
1.3.2.
1.3.1.
1.3.0.
1.2.1.
1.2.0.
1.1.0.
This list is: "http", "https", "ftp", "telnet", "news", "nntp", "gopher", "mailto", "file".
1.0.4.
New "dangerous" tag: plaintext.
1.0.3.
Added array of elements that can have no closing tag.
1.0.2.
Bug fix: <img src="javascript:alert(1);"> attack.
Thanks to shmel.
1.0.1.
Bug fix: safehtml hangs on <style></style></style> code.
Thanks to lj user=electrocat.
1.0.0.
First public release

Advanced Topics

Dependencies for SafeHTML

Authors and copyrights

Author: Roman Ivanov[link8].
Copyrights:
© 2006–2023, WackoWiki Team
© 2004–2005, Roman Ivanov
© 2004–2005, Pixel-Apes
© 2004–2005, JetStyle

Contacts

If you found any bugs in this parser, please inform us — Bugtracker[link1].