chiark / gitweb /
checkupdates: Ignore xml tags in string content
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Sep 2015 23:34:02 +0000 (16:34 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Sep 2015 23:35:41 +0000 (16:35 -0700)
commit4ea5ce88890cf76bef6f31232c30a202277ff761
treeda2a9302089246be4c059e18a547f3b5c6f35721
parent79475d055faa35f47a57d9185d0a4562ee0844ef
checkupdates: Ignore xml tags in string content

This allows us to fetch strings like the following:

<string name="app_name">foo <xliff:g>bar</xliff:g></string>

Up until now, using .text would only return "foo ", but if we use .tostring()
with the text method, it converts everything into plain text for us resulting
in "foo bar".
fdroidserver/common.py