modify html snippet