Issue
In the below posted entry in the strings.xml, I would like to save a url and it includes & sign. this sign is not recognized...How to save the link as entry in strings.xml..the & sign is not recognized
url
<string name="BASE_URL">https://en.wikipedia.org/w/api.php?
action=query&format=json&list=search&srsearch=Trump</string>
Solution
Just replace each &
with &
<string name="BASE_URL">https://en.wikipedia.org/w/api.php?
action=query&format=json&list=search&srsearch=Trump</string>
There are some other characters that can be replaced:
> -- >
< -- <
" -- "
' -- '
Answered By - Jaime Suarez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.