2016-08-29 14 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

ありがとう。これは私が欲しいものです –

関連する問題