all <br /> to <br>
all <hr /> to <hr>
all border="0" removed from img tag
all one tag tags closed

/> to >
script tag HTML5 ready

all language= and type= attributes from script tag removed