string oldText = "<p>There will be at least one question based on each text in the first four questions.</p>";
string newText = oldText.Replace("<p>", "<item>").Replace("</p>", "</item>");
Sumit Pathak ------------------
ThisPost = Helped == True ? "Mark As Answer" : "Elaborate your problem in more details"
Marked as answer by v-ambily on Feb 10, 2012 10:19 AM
Sum8
Contributor
4141 Points
931 Posts
Re: convert the text format to another format
Feb 10, 2012 09:03 AM|LINK
Try this sample code:
string oldText = "<p>There will be at least one question based on each text in the first four questions.</p>"; string newText = oldText.Replace("<p>", "<item>").Replace("</p>", "</item>");Sumit Pathak
------------------
ThisPost = Helped == True ? "Mark As Answer" : "Elaborate your problem in more details"