From 92b8b8721700cd47d7fef2ba64f166f45c797ca2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 8 May 2023 01:00:53 +0300 Subject: test the proper encoding of ' as well --- lib/html.source.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index 8f057a0..b60ac75 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -71,7 +71,7 @@ html::make_link () { descr="$link" fi - echo "$descr
" + echo "$descr
" } html::process_inline () { @@ -215,6 +215,10 @@ html::test::default () { assert::equals "$(generate::make_link html "$line")" \ "https://example.org
" + line="=> https://example.org/foo'bar" + assert::equals "$(generate::make_link html "$line")" \ + "https://example.org/foo'bar
" + line='=> index.html' assert::equals "$(generate::make_link html "$line")" \ "index.html
" -- cgit v1.2.3