How to replace all &, <, > in string before parsing to XElement?

sp4rc

New Member
I have string like this \[code\]"<root><text>My test is > & < </text></root>"\[/code\]Actually this is correct xml, except &, <, > symbols.I need to convert it to \[code\]<root><text>My test is > & < </text></root>\[/code\] before I convert it with XElement.Parse(str);How to make this conversion?
 
Back
Top