change html snippet