All pastes #2134543 Raw Edit

Mine

public text v1 · immutable
#2134543 ·published 2012-04-01 16:38 UTC
rendered paste body
from HTMLParser import HTMLParser
import re

r = re.compile('<title>(.*?)</title>', re.DOTALL)

htmlstring = """some<title>strong containing


html</title>"""

title = r.findall(htmlstring)
title = HTMLParser().replace(title)