summaryrefslogtreecommitdiff
path: root/sfeed_opml_export
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-04-07 13:47:51 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-04-07 13:47:51 +0200
commitc2aac8dcaf1cbf8052ce8f3c61d5b7211030a403 (patch)
tree53d4591cfc772ba2a993ba64a4c9aa77c6d24103 /sfeed_opml_export
parent3b7c8de5c73e03add5c58dfbe8cbb150b1dbe795 (diff)
sfeed_opml_export: encode more entities for attribute values
Found by testing newsboat and compatibility with other clients.
Diffstat (limited to 'sfeed_opml_export')
-rwxr-xr-xsfeed_opml_export3
1 files changed, 2 insertions, 1 deletions
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@"@\&quot;@g'
+ printf '%s' "$1" | sed -e 's@"@\&quot;@g' -e "s@'@\&#39;@g"\
+ -e 's@<@\&lt;@g' -e 's@>@\&gt;@g'
}
# override feeds function to ouput opml XML.