Closed GoogleCodeExporter closed 9 years ago
Or in "common" library, we need to extend the replacements to support the \u00
.. escapes like:
unescapeXML()
{
if [ -z "$1" ]; then
sed 's/>/>/g;s/</</g;s/"/"/g;s/&/\&/g;s/\\u0026amp;/\&/g;'
else
echo -n "$1" | sed 's/>/>/g;s/</</g;s/"/"/g;s/&/\&/g;s/\\u0026amp;/\&/g;'
fi
}
I have no idea if this will work at all :) - just suggestion.
Original comment by lorolo...@gmail.com
on 27 Jan 2012 at 6:38
see r605
Original comment by Serge.A.Timchenko@gmail.com
on 27 Jan 2012 at 7:59
Original issue reported on code.google.com by
lorolo...@gmail.com
on 27 Jan 2012 at 3:30