This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'PEAR.php'; | |
define('TEXT_HTML_PASSTHRU', 0); | |
define('TEXT_HTML_SYNTAX', 1); | |
define('TEXT_HTML_MICRO', 2); | |
define('TEXT_HTML_MICRO_LINKURL', 3); | |
define('TEXT_HTML_NOHTML', 4); | |
define('TEXT_HTML_NOHTML_NOBREAK', 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This filter attempts to make HTML safe for viewing. IT IS NOT PERFECT. If | |
* you enable HTML viewing, you are opening a security hole. With the current | |
* state of the web, I believe that the best we can do is to make sure that | |
* people *KNOW* HTML is a security hole, clean up what we can, and leave it | |
* at that. | |
* | |
* $Horde: framework/Text_Filter/Filter/xss.php,v 1.18 2008/12/10 15:11:58 chuck Exp $ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mrubinsk on github. | |
* I am mrubinsk (https://keybase.io/mrubinsk) on keybase. | |
* I have a public key whose fingerprint is CF93 0F12 4711 817F 9EF7 D80F 4D6D 0AE9 B20D 615E | |
To claim this, I am signing this object: |