diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-04-07 13:47:51 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-04-07 13:47:51 +0200 |
commit | c2aac8dcaf1cbf8052ce8f3c61d5b7211030a403 (patch) | |
tree | 53d4591cfc772ba2a993ba64a4c9aa77c6d24103 /sfeed_opml_export | |
parent | 3b7c8de5c73e03add5c58dfbe8cbb150b1dbe795 (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-x | sfeed_opml_export | 3 |
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@"@\"@g' + printf '%s' "$1" | sed -e 's@"@\"@g' -e "s@'@\'@g"\ + -e 's@<@\<@g' -e 's@>@\>@g' } # override feeds function to ouput opml XML. |