mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
a283cf8fbe
When libtidy removed option 'drop-font-tags' the docs said to use the 'clean' option instead (see MDL-69951). However, 'clean' replaces legacy style information with classes, the corresponding CSS added in <head>. With 'show-body-only' (used because we're inserting an HTML fragment mid-way through <body>) that <head> with its CSS is omitted. So 'clean' with 'show-body-only' removes legacy style information, rather than tidying it. Consequently we now drop the 'clean' option. This means <font> tags are no longer dropped as libtidy currently has no equivalent to the removed 'drop-font-tags' functionality.