Skip to content

adapter-android doesn't support string resources containing styling tags #8

@carltonwhitehead

Description

@carltonwhitehead

Consider the following string resource copied from the Android documentation page, String Resources:

<string name="welcome">Welcome to <b>Android</b>!</string>

adapter-android needs to read the full, raw text content as a string, with no additional processing of child elements. This doesn't seem to be possible with either of the XML readers I've tried so far: Java API for XML Processing (org.w3c.dom), and jackson-dataformat-xml. Being concerned with standards compliance, they rightly see the b as a child element of string, rather than part of its text content. This results in the pseudolocalized output strings being mangled in some way depending on the behavior of the XML reader in use.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions