#!/bin/bash
decodehtmlentities='#!/usr/bin/env python2
import sys, codecs
sys.stdin = codecs.getreader("utf-8")(sys.stdin)
sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
sys.stderr = codecs.getwriter("utf-8")(sys.stderr)
import HTMLParser
h = HTMLParser.HTMLParser()
for line in sys.stdin:
print h.unescape(line),'
uconv -f utf-8 -t utf-8 --callback escape-xml-dec | python2 -c "$decodehtmlentities"