1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2023-06-16 09:02:23 -04:00
parent 55ec568070
commit fde9c1c2e2

View File

@@ -78,7 +78,7 @@ class MarkupHTMLPurifier extends WireData implements Module {
*/
public function init() {
$this->settings->set('Cache.SerializerPath', $this->getCachePath());
$this->settings->set('Attr.AllowedRel', array('nofollow'));
$this->settings->set('Attr.AllowedRel', array('nofollow', 'noopener', 'noreferrer'));
$this->settings->set('HTML.DefinitionID', 'html5-definitions');
$this->settings->set('HTML.DefinitionRev', 1);
$this->def = $this->settings->maybeGetRawHTMLDefinition();