Escape chars when convert to HTML