how can I enter character "<" in strings.xml?

Posted by yrajabi on Stack Overflow See other posts from Stack Overflow or by yrajabi
Published on 2012-09-03T15:32:44Z Indexed on 2012/09/03 15:37 UTC
Read the original article Hit count: 161

Filed under:
|
|
|
|

I want to enter string " -< " in strings.xml file, the string has character < and I couldn't add it to xml file without error! I even tried to escaping by \ character:

<string name="search_target_arrow"> -\< </string>

or enclosing it between "" as below:

<string name="search_target_arrow">" -< "</string>

but none worked. Maybe I'm very amateur at this and the answer is not hard for you. so please tell me how you add such special chars in strings.xml?

© Stack Overflow or respective owner

Related posts about java

Related posts about android