From 71ac232a43ae81dfe4acf47b22f5ebaf22468a02 Mon Sep 17 00:00:00 2001 From: Fotis Athineos Date: Wed, 21 Nov 2018 17:29:09 +0200 Subject: [PATCH] Add html INLINE_TAGS for android xml escaping --- openformats/formats/android.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openformats/formats/android.py b/openformats/formats/android.py index 71abb428..e60cf046 100644 --- a/openformats/formats/android.py +++ b/openformats/formats/android.py @@ -564,9 +564,11 @@ def _should_ignore(child): # Escaping / Unescaping # According to: - # http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling # noqa - - INLINE_TAGS = ("xliff:g", "a", "annotation") + # https://developer.android.com/guide/topics/resources/string-resource#FormattingAndStyling + # https://developer.android.com/guide/topics/resources/string-resource#StylingWithHTML + INLINE_TAGS = ("xliff:g", "a", "annotation", "b", "em", "i", "cite", "dfn", + "big", "small", "font", "tt", "s", "strike", "del", "u", + "sup", "sub", "ul", "li", "br", "div", "span", "p") @staticmethod def escape(string):