Try changing you statement to match this:
FOR XML PATH('')).value('.','varchar(max)')
FOR XML PATH(''), TYPE).value('(./text())[1]','varchar(max)')
And see how it works for youThis uses the .value xml
method to solve your entitization problem.