We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70237b2 + 3d82f7c commit 05b4cdcCopy full SHA for 05b4cdc
1 file changed
testssl.sh
@@ -535,11 +535,11 @@ html_reserved(){
535
local output
536
"$do_html" || return 0
537
#sed -e 's/\&/\&/g' -e 's/</\</g' -e 's/>/\>/g' -e 's/"/\"/g' -e "s/'/\'/g" <<< "$1"
538
- output="${1//&/&}"
539
- output="${output//</<}"
540
- output="${output//>/>}"
541
- output="${output//\"/"}"
542
- output="${output//\'/'}"
+ output="${1//&/$'&'amp;}"
+ output="${output//</$'&'lt;}"
+ output="${output//>/$'&'gt;}"
+ output="${output//\"/$'&'quot;}"
+ output="${output//\'/$'&'apos;}"
543
printf -- "%s" "$output"
544
return 0
545
}
0 commit comments