From c2aac8dcaf1cbf8052ce8f3c61d5b7211030a403 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 7 Apr 2018 13:47:51 +0200 Subject: sfeed_opml_export: encode more entities for attribute values Found by testing newsboat and compatibility with other clients. --- sfeed_opml_export | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfeed_opml_export b/sfeed_opml_export index 212b3c6..72bda28 100755 --- a/sfeed_opml_export +++ b/sfeed_opml_export @@ -24,7 +24,8 @@ loadconfig() { # escape(s) escape() { - printf '%s' "$1" | sed 's@"@\"@g' + printf '%s' "$1" | sed -e 's@"@\"@g' -e "s@'@\'@g"\ + -e 's@<@\<@g' -e 's@>@\>@g' } # override feeds function to ouput opml XML. -- cgit v1.2.3