mobiata/twine — pull request #35 by nicolasgramlich (2013-07-05 22:32:20+00:00)
Title: Don't unescape XLIFF tags on Android

Problem:
* On android XLIFF tags inside of a string should not be escaped. (See [here](http://developer.android.com/distribute/googleplay/publish/localizing.html#strings)).

Solution:
* Unescape XLIFF tags using Regexp.

Test:
* Site: http://gskinner.com/RegExr/
* Match: ``(]*?)\\"([^>]*?)\\"([^>]*?>)``
![Regular expression image](http://www.debuggex.com/i/O9uh0sCss3c0wDIn.png)
* Replace: ``$1"$2"$3``
* In: ``TEST " (\"%1$s\" TEST/ ""%2$s) ""``
* Append the output in the input box until no changes are happening:

```
TEST " (\"%1$s\" TEST/ ""%2$s) ""

TEST " (\"%1$s\" TEST/ ""%2$s) ""

TEST " (\"%1$s\" TEST/ ""%2$s) ""
```