Shouldn't there be a matching `escape_entities` or equivalent.