updated check to allow some xml in tips

svn: r14362
This commit is contained in:
Benny Malengier 2010-02-14 07:54:32 +00:00
parent e2947972b3
commit 9b5f320c93

View File

@ -158,7 +158,7 @@ class Check_runaway( Check ):
class Check_xml_chars( Check ):
# Special XML characters
# It is not allowed to have a quote, an ampersand or an angle bracket
xml_chars_pat = re.compile( r'(?<=\W) > | " | & (?!(quot|nbsp|gt|amp);)', re.VERBOSE )
xml_chars_pat = re.compile( r'<(?!(b>|/b>|i>|/i>|br/>)) | (?<=!(<b|/b|<i|/i|r/))> | " | & (?!(quot|nbsp|gt|amp);)', re.VERBOSE )
def __init__( self ):
Check.__init__( self )