I'd prefer a more generalized solution which takes care of all possible
ampersand characters. I assume that there is code already written which
does this.

Thanks

i80and wrote:
> I would suggest using string.replace.  Simply replace '&nbsp' with ' '
> for each time it occurs.  It doesn't take too much code.
>
> On Nov 7, 1:34 pm, "mp" <[EMAIL PROTECTED]> wrote:
> > I have html document titles with characters like &gt;, &nbsp;, and
> > &#135. How do I decode a string with these values in Python?
> > 
> > Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to