MDL-66104 output: HTMLPurifier to allow <nolink> tags everywhere
commitcd1a80769f4a4918364d98e19d770528f7516a60
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:57 +0000 (1 17:52 +0200)
treeacba10c8f2a27417d8a85bc7d9d5a759df2a8cac
parent0f13016a50a20395c0fab78a7693ec240b8a0eaf
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