blob: 4e26a12efa67ebfde3afecf8264fd92f4c7cf1da (
plain)
1
2
3
4
5
6
7
8
9
|
# Copyright (C) IBM Corporation 2008
from BeautifulSoup import BeautifulStoneSoup
#Extend beautiful soup HTML parsing library
#to recognise new self-closing tag <reference>
class NewtifulStoneSoup(BeautifulStoneSoup):
NESTABLE_TAGS = BeautifulStoneSoup.NESTABLE_TAGS
NESTABLE_TAGS['reference'] = 'reference'
|