From 3c6188acf06718c5cd45d7d2c2e2c42503e066d0 Mon Sep 17 00:00:00 2001 From: shota-yamashita <=> Date: Sat, 17 Jul 2021 10:41:51 +0900 Subject: [PATCH] add 'wbr' tag to safelist 'wbr' tag is an empty HTML element, but not supported loofah so added it to support list. ref: https://developer.mozilla.org/en-US/docs/Glossary/Empty_element --- lib/loofah/html5/safelist.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/loofah/html5/safelist.rb b/lib/loofah/html5/safelist.rb index 3acafac..37a1391 100644 --- a/lib/loofah/html5/safelist.rb +++ b/lib/loofah/html5/safelist.rb @@ -800,6 +800,7 @@ module SafeList "link", "meta", "param", + "wbr", ]) # additional tags we should consider safe since we have libxml2 fixing up our documents.