From 3bd8fb13c28e533ce56be4c866338e9bdf26d3bc Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 26 Jul 2010 18:33:10 -0500 Subject: [PATCH] do a couple simple conversions of htmlified characters to their ascii equivalent --- dr.botzo.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dr.botzo.py b/dr.botzo.py index 4b9334c..14fb5bc 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -180,6 +180,12 @@ class GoogleTranslate(Module): translation = content[start_idx:] end_idx = translation.find('"}, "') translation = translation[:end_idx] + + # do some text conversion + translation = translation.replace('\\u0026quot;', '"') + translation = translation.replace('\\u003c', '<') + translation = translation.replace('\\u003e', '>') + if replypath is None: return translation else: