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:
parent
86fc879010
commit
18e8c3b52d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue