From d7672df96c413bb330a2761f9f7099237313442a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 28 Feb 2016 16:08:03 -0800 Subject: [PATCH] allow ul/li/ol --- lib/Formats/Mf2.php | 3 +++ tests/SanitizeTest.php | 2 ++ tests/data/sanitize.example/entry-with-valid-tags | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/lib/Formats/Mf2.php b/lib/Formats/Mf2.php index 11a7bf8..ae9b387 100644 --- a/lib/Formats/Mf2.php +++ b/lib/Formats/Mf2.php @@ -317,6 +317,9 @@ class Mf2 { 'h4', 'h5', 'h6', + 'ul', + 'li', + 'ol' ]); $def = $config->getHTMLDefinition(true); $def->addElement( diff --git a/tests/SanitizeTest.php b/tests/SanitizeTest.php index 1d1dbb9..ecd36ea 100644 --- a/tests/SanitizeTest.php +++ b/tests/SanitizeTest.php @@ -50,6 +50,8 @@ class SanitizeTest extends PHPUnit_Framework_TestCase { $this->assertContains('

Four

', $html, '

missing'); $this->assertContains('

Five
', $html, '
missing'); $this->assertContains('
Six
', $html, '
missing'); + $this->assertContains('