My site is about to go live and I have some big issue with content maneged pages.. Please help
I have lot of articles in the database and while showing it in the site I replace the newline chracter with <br /> using following code...
string article = details.Replace(System.Environment.Newline, "<br />");
But its making issues if my articles have tables or lists in the content.. The above code will put <br /> after each tags of the table.. so I will have <br /> between all the <tr>, <td>, <tbody> etc.. resulting in a malformed HTML and its making lot of issues while display..
I want to replace only the new lines in content not between the tags..
please help..
...
Go to the complete details ...