<%page args="module"/> % if "text" in module : % if module["text"] : <% from lxml.html.clean import Cleaner import re cleaner = Cleaner(comments = False, links = False, meta = False, page_structure = false, processing_instructions = False, embedded = False, frames = False, forms = False, annoying_tags = False, remove_unknown_tags = False, safe_attrs_only = False) html = cleaner.clean_html('

' + module["text"] + '

') html = re.sub('^

|

$','',html) %> ${_(html)} % endif % else : Hi! I am completely static HTML content module. % endif