Improve HTML cleanup in doc blocks