Skip to content

Commit

Permalink
Add html INLINE_TAGS for android xml escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
fathineos committed Nov 21, 2018
1 parent ee9a8e7 commit 71ac232
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openformats/formats/android.py
Expand Up @@ -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):
Expand Down

0 comments on commit 71ac232

Please sign in to comment.