julio dinis wrote: > This code results in a error: > > <dtml-let MyVar="_.string.replace(Mytext,'"','"')"> Try this (untested): <dtml-let MyVar="_.string.replace(Mytext,'\x22','"')"> \x22 = " \x27 = ' -CJ