replace tags with spaces instead of newlines in nanotext