Pass state in to_html
#726
+3
−0
Merged
to_html
#726