How to escape HTML with characters like – in Python?
-
See this previous Stack Overflow question: stackoverflow.com/questions/913933/…las3rjock– las3rjock2009-08-08 15:48:03 +00:00Commented Aug 8, 2009 at 15:48
-
1Not to be confused with "Escaping FROM Pythons!"NoMoreZealots– NoMoreZealots2009-08-08 15:49:10 +00:00Commented Aug 8, 2009 at 15:49
-
@Alex, please clarify: do you have a Python Unicode string and want to produce the escaped HTML, or viceversa, do you have the HTML containing escapes and want to produce a Python Unicode string?Alex Martelli– Alex Martelli2009-08-08 16:07:37 +00:00Commented Aug 8, 2009 at 16:07
-
@Alex, I'd like to produce a Python Unicode string from HTML with escapes ASCII string, well, and the other way round as well.Alex– Alex2009-08-09 11:59:06 +00:00Commented Aug 9, 2009 at 11:59
Add a comment
|