Add HTML-escape text of references.