use of Replace functions with special characters

use of Replace functions with special characters

Dear all,

I would like to create a script which would identify specific text strings within a field and replace them with XML formatting tags.
Say I this specific string is "XML", the tag is "<XML>" I guess a correct use of the Replace function would look like this :

replaceAll("XML","<XML>",true)

I tried is but the "<"">" characters would not be output. I also tried to use backslash characters in the replace function like this:





replaceAll("XML","\<XML\>",true)

But then the backslash characters would also be output...
Any clues as to how such a function can be correctly implemented?

Best,