escape: Use `&#x27;` instead of `&apos;` for backwards compatibility