You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/11/26 15:58:56 UTC

[GitHub] [cordova-android] tiagoappereira commented on issue #1380: Error : Invalid character in entity name when & is in the

tiagoappereira commented on issue #1380:
URL: https://github.com/apache/cordova-android/issues/1380#issuecomment-980075487


   Adding a bit of context on what I believe caused the issue: on cordova-android 10, a [change](https://github.com/apache/cordova-android/commit/13bd3f4a9f8541147dcd2e458390cb34774e73bf#diff-2d637acb73216ac5e27baf300c9dd71a6b514f304941ebaaa13f30615fe4932dL207) was made that broke the use case. Bringing the removed `replace` (or adapt it to only transform the `&` character) would most likely fix the issue.
   
   ![image](https://user-images.githubusercontent.com/36884956/143606021-2655bcb9-0a25-4236-9cf7-6c5586c30984.png)
    
   The error is not caused in that file but it was disclosed by that linked change. The error in hands is related to the way the name is written to Android’s `strings.xml` ([here](https://github.com/apache/cordova-android/blob/13bd3f4a9f8541147dcd2e458390cb34774e73bf/lib/create.js#L258)), which causes the error when parsing it, in [prepare.js](https://github.com/apache/cordova-android/blob/05e3e3cf8dcceb17aff945328ecd60ad69c43dc2/lib/prepare.js#L263) file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org