#NEWLINE# def iterencode( self , o , _one_shot = False ) : #NEWLINE# #INDENT# chunks = super ( JSONEncoderForHTML , self ) . iterencode ( chunks ) #NEWLINE# for chunk in chunks : #NEWLINE# #INDENT# chunk = chunk . replace ( '&' , '\\u0026' ) #NEWLINE# chunk = chunk . replace ( '<' , '\\u003c' ) #NEWLINE# chunk = chunk . replace ( '>' , '\\u003e' ) #NEWLINE# ( yield chunk )