revise html stream