I have a string containing u0026#39;
. I can use html.unescape
to convert this back to a character.
But if I first split that string with split(',')
, suddenly it becomes \u0026#39;
, and unescape
no longer works. How can I split on a delimiter without introducing this problem, or reverse it without introducing new ones?
Please look at any proposed duplicates carefully, I found several that looked exactly right but didn’t answer my question.