MDL-66104 output: HTMLPurifier to allow <nolink> tags everywhere
commit764167136fd21eaa3386f61cf2cc7fa7cb4538c5
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 8 Jul 2019 14:09:40 +0000 (8 16:09 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 1 Aug 2019 15:52:33 +0000 (1 17:52 +0200)
treee4027bc0802811508c9898416ab164a139a1635c
parent414eca89239d275807f155837e10200f9e81322a
MDL-66104 output: HTMLPurifier to allow <nolink> tags everywhere

Before the patch, HTMLPurifier was instructed to handle <nolink>
tags in block mode. That implies that any block tag enclosing it
had to be closed for HTML compliance.

But <noscript> tags are not part of the final output (they are
removed) but just internally used to skip filtering certain areas.

So they can be virtually everywhere, HTMLPurifier just should allow
them without any change, both to parent or children tags.
lib/tests/htmlpurifier_test.php
lib/weblib.php