Reputation: 89
I get some string from web use python3.4. Here is string I get:
str="<lily>"
How to get this result?
str="<lily>"
Upvotes: 1
Views: 46
Reputation: 1235
use replace:
str="<lily>"
str.replace("<","<").replace(">",">")
Upvotes: 1