format data correctly, for e.g. enable hyperlinks