Topic: Using '&' char in code can produce not correct xml (script.dcu)

V6.2

In one of my units I have a line:

ItemCaption := ReplaceStr(ItemCaption, '&', '');

When I want to load the script.dcu in "MS XML Notepad" I got an error.

So I have to change it to

ItemCaption := ReplaceStr(ItemCaption, '&', '');

Don't know if it is important but found that when looking for another error.
;-)