[utils] Fix inconsistent output of clean_html