I have this code block:
xml = xml.Replace("<html>", "");
xml = xml.Replace("<head>", "");
xml = xml.Replace("</head>", "");
xml = xml.Replace("<body>", "<certidoes>");
xml = xml.Replace("</body>", "");
xml = xml.Replace("</html>", "</certidoes>");
My question is: Is there any way to abstract this block in a way that is more friendly and simple?
I need to remove the tags from the html and put the tag tags.
Note: xml = is an xml that I have in the HTML page content