commit aea9644b0a408233385c24d41590f88fa63a8028 parent a682b20bb6fb8abc428c8f2f4226e9fd7ccb00b3 Author: Leonardo Taccari <iamleot@gmail.com> Date: Sat, 1 Dec 2018 10:43:24 +0100 sfeed_opml_export: escape `&' Diffstat:
M | sfeed_opml_export | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sfeed_opml_export b/sfeed_opml_export @@ -24,8 +24,8 @@ loadconfig() { # escape(s) escape() { - printf '%s' "$1" | sed -e 's@"@\"@g' -e "s@'@\'@g"\ - -e 's@<@\<@g' -e 's@>@\>@g' + printf '%s' "$1" | sed -e 's@&@\&@g' -e 's@"@\"@g'\ + -e "s@'@\'@g" -e 's@<@\<@g' -e 's@>@\>@g' } # override feeds function to ouput opml XML.