commit c2aac8dcaf1cbf8052ce8f3c61d5b7211030a403
parent 3b7c8de5c73e03add5c58dfbe8cbb150b1dbe795
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 7 Apr 2018 13:47:51 +0200
sfeed_opml_export: encode more entities for attribute values
Found by testing newsboat and compatibility with other clients.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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.