publish: making sure no dirty html is displayed on loading

generated from commit 4c2a0ebe3f1b5007fe01b8decbf37d639c3c3431