#!/usr/bin/env python # -*- coding: utf-8 -*- ur""" >>> parse('Text')
Text >>> parse('data
')data
# text moved out of input >>> parse('data') data >>> parse('') # Unicode >>> parse('испытание') испытание # Meta tag >>> parse('') >>> parse('') >>> parse('') # Script tag >>> parse('') # Script tag + crossorigin >>> parse('') # Unterminated script tag, will auto-terminate >>> parse(' >>> parse('') >>> parse('') >>> parse('') # Unterminated style tag, handle but don't auto-terminate >>> parse('