Bug fix of unnecessary html replacement that could in some cases lead to javascript events screw up.