Public feed #2134543

Mine

public text v1 · immutable
Raw Edit
·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)