Closed Akkell closed 3 years ago
LocoLaser escapes characters so in the TextView will be shown the same text as in Sheet. Also new line characters replaces with "\n". So described behaviour is expected behawiour.
I understand that in some cases the escaping not needed. It should be solved in the future by additional row attributes that defines how to handle such cases.
Until it done, if you want to use HTML formated string you should use programmaticaly way
someTextView.setText(Html.fromHtml(someString));
CDATA bracers can be added by using Meta Data.
To do it Google Sheet should contain meta data column with following value "xml-cdata=true"
.
Unfortunately there is no easy way to read CDATA bracers from strings.xml
. So required metadata can be provided only from Google Sheet.
1. Bare HTML tags corruption. GoogleSheet:
key1 <b>Hello</b>
Android:
<string name="key1"><b>Hello</b></string>
<string name="key1"><b>Hello</b></string>
2. HTML tags wrapped into
<![CDATA[ ...raw html... ]]>
GoogleSheet:Android:
Thank you for useful tool.