Correct convertions of > and < signs. Added extra enter in front of .. MATH::
Removes html tags starting with <[sS]> or </[sS]>
Removes all <> tags except links
Convberts '&amp;' to '&'