Escape story fields and clean story HTML with HTML Purifier.

Add HTML Purifier 4.19.1. Stories are purified when they are saved and
when they are shown.
This commit is contained in:
tim
2026-09-25 21:34:10 +02:00
parent e881ddb458
commit 00e1829f8b
385 changed files with 33174 additions and 12 deletions
+2 -1
View File
@@ -241,7 +241,8 @@ function sanitise($story) {
$story = SmartyPants($story);
#include_once('../lib/convert_entities.inc.php');
#$story = html_entity_decode_full($story); // Convert named entities to numeric entities
// Won't worry about HTML Purifier yet
// Remove any unsafe markup; this must stay the last step
$story = purify_story($story);
}
return $story;
}