theText = replace(theText,'<html><body>','');
theText = replace(theText,'</body></html>','');
theText = replace(theText,'<br>',chr(10)&chr(13));
However when I attach this function into an expression associated with an action button I get a "failed to launch" error message. Seems to test out okay. Should this be doable????