Add utility to replace inner HTML of documents