fix htnl validation for public images and gallery block