def tag_format_html(node,context): """[html] - Formats HTML for display in skype.""" s='' if node.type=='tag': s = stringsafety.FormatHTML(dynamic_core.get_var(node.attribute,context)) elif node.type=='cont': s= stringsafety.FormatHTML(dynamic_core.stringify(node.process_children(context))) if len(s)>550: return s[0:447]+"..." else: return s
def tag_str(node,context): v = "" for child in node.children: v+=stringify(child.process(context)) return v