%s'%(x.tag,txt) # recurse through tree, if necessary for a in x: s+=et2string(a) s+='%s'%(x.tag,(x.tail or '')) return s ?> ${elem.text.strip()} ${Markup(s).strip()} $alttext Toggle help