`encodeForHTMLWithLinks` might be a better name