Add preprocessing for new html snippet loading