I basically have a string from a database of some html code. Now I want to display the html code in a textarea of some sort on a asp.net webpage from there the user is able to edit the html code which will include indenting etc... and the user can save the html code back into the database.
I have had a read about TidyManaged which uses unmanaged code, which I don't want to use unmanaged code.
Is there some sample code, or websites which explains this to format html code like - Html Formatter
Any direction or help will be greatly appreciated.
Edit :
I just want the html tags to be indented bearing in mind the html string parsed might not be conformed which is fine for this application.
An example of a html string used -
string a = "<html><body><h1>hello</h1></body></html>
Output should look as follows
<html>
<body>
<h1>
hello
</h1>
</body>
</html>