Typesetter-Original-gtbu/include/thirdparty/html-sanitizer
gtbu 5cc9d11a11 Added html-sanitizer
If Tidy is unavailable - still needs integration into the cms
2025-07-13 15:06:37 +02:00
..
htmLawed.php Added html-sanitizer 2025-07-13 15:06:37 +02:00
LICENSE-GPL2 Added html-sanitizer 2025-07-13 15:06:37 +02:00
LICENSE-LGPL3 Added html-sanitizer 2025-07-13 15:06:37 +02:00
README.md Added html-sanitizer 2025-07-13 15:06:37 +02:00
sanitizer-examples.php Added html-sanitizer 2025-07-13 15:06:37 +02:00
sanitizer.php Added html-sanitizer 2025-07-13 15:06:37 +02:00

HTMLawed is ...

... a single-file, 45 kb PHP script that makes input text more secure, HTML standards-compliant, and suitable in general from the viewpoint of a web-page administrator, for use in the body of HTML, XHTML or XML documents. A simple HTMLTidy alternative, the htmLawed filter, processor, purifier, sanitizer, beautifier, etc., is highly customizable.

It ensures that HTML tags are balanced and properly nested tags, neutralizes code that may be used for cross-site scripting (XSS) attacks, limits allowed HTML elements, attributes, or URL protocols, tidies the code, and so forth.

As such is may serve as an alternative to HTMLtidy in a sanitation context.

This repository is ...

... a derivative, which closely tracks the original

https://github.com/kesar/HTMLawed

Links