private string ReplaceControlNodes(string text) { try { text = text.Replace("<", "<"); text = text.Replace(">", ">"); } catch(Exception) { //unhandled, only some textnodes will be left } return text; } }