Problem/Motivation
Xss::filter()
doesn't seem to filter correctly comments when there are HTML/XML tags in them. These are mostly HTML that were copied directly from MS Word.
Steps to reproduce
>>> \Drupal\Component\Utility\Xss::filter("<!--\ntest\n-->");
=> "">>> \Drupal\Component\Utility\Xss::filter("<!--\n<title>test</title>\n-->");
=> """
test\n
-->
""">>> \Drupal\Component\Utility\Xss::filter("<!--<title>test</title>-->");
=> "">>>