From 29aece3472ff2d9c54b38c0d4204c907bb068d77 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Fri, 11 Jul 2014 22:28:26 +0000 Subject: added A NAME/ID to whitelist in HTMLpurifier. That means we can now make vintage indexes in web pages. --- include/text.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 6d6284ab2..61c731167 100755 --- a/include/text.php +++ b/include/text.php @@ -122,6 +122,7 @@ function purify_html($s) { $config = HTMLPurifier_Config::createDefault(); $config->set('Cache.DefinitionImpl', null); + $config->set('Attr.EnableID', true); $purifier = new HTMLPurifier($config); return $purifier->purify($s); -- cgit v1.2.3