'Function to replace all unicodes with their HTML
equivalent'

def replace_unicodes(self, txt):

    txt = txt.replace('\n', '\\n')
    txt = txt.replace(u'\u2019', '&#8217;')
    txt = txt.replace(u'\u201c', '&#8220;')
    txt = txt.replace(u'\u201d', '&#8221;')
    txt = txt.replace(u'\xb6', '')
    txt = txt.replace(u'\u2013', '&#8211;')
    txt = txt.replace(u'\u2018', '&#8216;')
    return txt
