Browse Source

fix format

neil 1 year ago
parent
commit
f86ee84457
1 changed files with 4 additions and 4 deletions
  1. 4 4
      dnsapi/dns_inwx.sh

+ 4 - 4
dnsapi/dns_inwx.sh

@@ -165,10 +165,10 @@ _inwx_check_cookie() {
 
 _htmlEscape() {
   _s="$1"
-  _s=$(echo "$_s" |  sed "s/&/&/g")
-  _s=$(echo "$_s" |  sed "s/</\&lt;/g")
-  _s=$(echo "$_s" |  sed "s/>/\&gt;/g")
-  _s=$(echo "$_s" |  sed 's/"/\&quot;/g')
+  _s=$(echo "$_s" | sed "s/&/&amp;/g")
+  _s=$(echo "$_s" | sed "s/</\&lt;/g")
+  _s=$(echo "$_s" | sed "s/>/\&gt;/g")
+  _s=$(echo "$_s" | sed 's/"/\&quot;/g')
   printf -- %s "$_s"
 }