Workaround is to trim all text before the ">" as is we get the following: echo "hola" | translate-bin -s google -f es -t en " onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">Hello
use the following to get what you want: $echo "hola" | translate-bin -s google -f es -t en | grep -oP ">$prefix\K.*" Hello -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1572955 Title: libtranslate-bin prints HTML garbage when translating with Google To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libtranslate/+bug/1572955/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
