When Html_nuker was initialized with allow_refs, the code was incorrectly
allowing character/entity references, so ":" was becoming just "58".
This commit is contained in:
parent
0e968d0b60
commit
6bb233f8da
|
@ -17,11 +17,11 @@ class Html_nuker( HTMLParser ):
|
|||
|
||||
def handle_charref( self, ref ):
|
||||
if self.allow_refs:
|
||||
self.result.append( ref )
|
||||
self.result.append( "&#%s;" % ref )
|
||||
|
||||
def handle_entityref( self, ref ):
|
||||
if self.allow_refs:
|
||||
self.result.append( ref )
|
||||
self.result.append( "&%s;" % ref )
|
||||
|
||||
def handle_comment( self, comment ):
|
||||
pass
|
||||
|
|
Reference in New Issue