2016-08-29 2 views

답변

1

사용은 대체 :

str="&#60lily&#62" 
str.replace("&#60","<").replace("&#62",">") 
+0

당신이 디코딩이나 인코딩 기능을 사용할 수 있습니까? –

+0

@ E.Tarrent 만약 당신이 HTML 엔티티를 디코딩하고 싶다면 : http://stackoverflow.com/questions/2087370/decode-html-entities-in-python-string –

+0

고마워.이게 내가 원하는거야. –