"Vo, Lance" <lvo@xxxxxxxxx> wrote: str-replace? http://us.php.net/manual/en/function.str-replace.php I am hoping for something that checks for matching open and closing markup, and will leave < and > unchanged, otherwise. And also a function to convert back. Thanks Stephen