summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Taccari <iamleot@gmail.com>2018-12-01 10:43:24 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-12-01 12:42:24 +0100
commitaea9644b0a408233385c24d41590f88fa63a8028 (patch)
tree31383ca3f7b53ae7deb4493d11dcce7557b4ee33
parenta682b20bb6fb8abc428c8f2f4226e9fd7ccb00b3 (diff)
sfeed_opml_export: escape `&'
-rwxr-xr-xsfeed_opml_export4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_opml_export b/sfeed_opml_export
index 72bda28..5d88165 100755
--- a/sfeed_opml_export
+++ b/sfeed_opml_export
@@ -24,8 +24,8 @@ loadconfig() {
# escape(s)
escape() {
- printf '%s' "$1" | sed -e 's@"@\&quot;@g' -e "s@'@\&#39;@g"\
- -e 's@<@\&lt;@g' -e 's@>@\&gt;@g'
+ printf '%s' "$1" | sed -e 's@&@\&amp;@g' -e 's@"@\&quot;@g'\
+ -e "s@'@\&#39;@g" -e 's@<@\&lt;@g' -e 's@>@\&gt;@g'
}
# override feeds function to ouput opml XML.