def escape(s):
    '\n    Do the standard xml escapes, and replace newlines and tabs.\n    '
    return saxutils.escape(s, {'\n': '<br />', '\t': '&nbsp;&nbsp;&nbsp;&nbsp;'})
Do the standard xml escapes, and replace newlines and tabs.
def escape(s):
    '\n    \n    '
    return saxutils.escape(s, {'\n': '<br />', '\t': '&nbsp;&nbsp;&nbsp;&nbsp;'})