Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

dgm/htmlpurified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

htmlpurified is a simple php script that uses
HTMLPurifier (http://htmlpurifier.org) to sanitize potentially
dangerous html messages, such as to display spam email in
Maia Mailguard (http://www.maiamailguard.com)

Copyright 2011 David Morton [email protected]
Licensed under MIT, LGPL, and/or GPL licenses, whatever meets your needs and
matches the needs of HTMLPurifier, and the PEAR libraries.

In other words, it's open source.

INSTALL:
install prerequisites:

pear channel-discover htmlpurifier.org
pear install hp/HTMLPurifier

then run it:

cat file | php htmlpurified.php


A simple ruby script is present to test it, with a local file as content:

ruby client.rb filename

NOTES:
Removed the network server idea, a simple piped program is more than sufficient.

About

A Net_Server wrapper around HTMLPurifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published