instanceinfo.sh: Fixed HTML stripper.

The leading and trailing " were supposed to be removed, but only the
leading one was removed.
This commit is contained in:
tastytea 2019-07-08 02:45:22 +02:00
parent 86fc879010
commit 18e8c3b52d
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ fi
function striphtml()
{
local extract="${*}"
echo "${extract}" | sed 's/\\u003c/</g' | sed 's/\\u003e/>/g' | sed -E 's/<[^>]+>//g' | sed 's/\\r\\n/ /g' | sed -E 's/(^"|"$)//'
echo "${extract}" | sed 's/\\u003c/</g' | sed 's/\\u003e/>/g' | sed -E 's/<[^>]+>//g' | sed 's/\\r\\n/ /g' | sed -E 's/(^"|"$)//g'
}
function main()