The function you want is prettify(), not renderContents().
renderContents does just what it sounds like; it renders the
*children* of the tag. In this case, that's "foo & bar".
Cheers!
Aaron DeVore
> --
>
> You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
> To post to this group, send email to
beauti...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/beautifulsoup?hl=.
>
>
>