diff options
author | friendica <info@friendica.com> | 2013-05-28 01:40:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-28 01:40:27 -0700 |
commit | 7a011a99c7fd840df6e5a00f42573893586f8790 (patch) | |
tree | 7a8ea255af3590cd797e0755380676915f5b4370 /include/text.php | |
parent | 9fda0a3fd5a78945f818f80bd45dc9e6e3995c4c (diff) | |
download | volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.tar.gz volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.tar.bz2 volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.zip |
wrong attribution on likes of comments in email notifications. Let's also call the thing they liked a comment instead of a status
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index e1fc0ade5..00e95a2bb 100755 --- a/include/text.php +++ b/include/text.php @@ -81,6 +81,22 @@ function escape_tags($string) { } +function purify_html($s) { + require_once('library/HTMLPurifier.auto.php'); + require_once('include/html2bbcode.php'); + +// FIXME this function has html output, not bbcode - so safely purify these +// $s = html2bb_video($s); +// $s = oembed_html2bbcode($s); + + $config = HTMLPurifier_Config::createDefault(); + $config->set('Cache.DefinitionImpl', null); + + $purifier = new HTMLPurifier($config); + return $purifier->purify($s); +} + + // generate a string that's random, but usually pronounceable. // used to generate initial passwords |