I assume you mean that the text may already have <br> tags in it as well as breaks, otherwise you'd just have to do the angle brackets before the breaks.
But if you want to catch all in case people have put code in, just convert all <br> tags to a break and then back again at the end. // convert <br> tags to linebreaks newstr = ReplaceNoCase(str, '<br>', chr(10), 'ALL'); // convert angle brackets to html escape codes newstr = Replace(newstr, chr(60), '<', 'ALL'); newstr = Replace(newstr, chr(62), '>', 'ALL'); // convert line breaks to <br> tags newstr = Replace(newstr, chr(10), '<br>', 'ALL'); newstr = Replace(newstr, chr(13), '<br>', 'ALL'); Taz -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
