Skip to content

Commit 50b0237

Browse files
fix(android): escape special characters in strings.xml (#15549)
* fix(android): escape special characters in `strings.xml` * Quote the values
1 parent 800223d commit 50b0237

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:bug
3+
"@tauri-apps/cli": patch:bug
4+
---
5+
6+
Escape special characters in `productName` when generating Android `strings.xml`
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<resources>
2-
<string name="app_name">{{app.stylized-name}}</string>
3-
<string name="main_activity_title">{{app.stylized-name}}</string>
2+
<string name="app_name">"{{html-escape app.stylized-name}}"</string>
3+
<string name="main_activity_title">"{{html-escape app.stylized-name}}"</string>
44
</resources>

0 commit comments

Comments
 (0)