v Convert HTML Characters To Strings - Python

Convert HTML Characters To Strings

## Preliminaries
import html
## Create Text
text = 'This item costs ¥400 or £4.'
## Convert To String
html.unescape(text)
'This item costs ¥400 or £4.'
## Convert To HTML Entities
html.escape(text)
'This item costs ¥400 or £4.'