// Replace special characters with entities: Replace("&", "&", BEGIN+ALL+NOERR) // this must be the first replace! Replace("<", "<", BEGIN+ALL+NOERR) Replace(">", ">", BEGIN+ALL+NOERR) Replace("'", "'", BEGIN+ALL+NOERR) Replace('"', """, BEGIN+ALL+NOERR) // Insert XML marking BOF IT("") IN Repeat(ALL) { Search("^.", REGEXP+ERRBREAK) IT(' ') EOL IT('') } EOF IT("") IN