From f2225077d7450ea08f40ea45cc348184f1d30b97 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 9 May 2025 14:31:12 +0200 Subject: Handle mailto:-links and tags inside tags in it_html::sanitize() (support request for https://search.ch/tel/biel-bienne/bahnhofstrasse-5/groupe-mutuel-4) --- test/it_html.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/it_html.t b/test/it_html.t index 15f444d..20ab65f 100755 --- a/test/it_html.t +++ b/test/it_html.t @@ -259,6 +259,18 @@ is( 'it_html::sanitize handle anchors with spaces between attribute name and value' ); +is( + it_html::sanitize('foo'), + 'foo', + 'it_html::sanitize handle nesting of tags inside ' +); + +is( + it_html::sanitize('foo'), + 'foo', + 'it_html::sanitize handle mailto links' +); + is( it_html::sanitize("foo"), 'foo', -- cgit v1.2.3