In my MVC solution, I have an HTML string and want to search for comment nodes and replace them based on their content.
How can I do this?
Thank you.
EDIT: The language is C#. The HTML string is e.g. "<div id='id1'>blahblah</div><!-- comment1 count='10' length='200' --><p>show real comment content before this paragraph.</p>"
. I need to get the comment block and then generate real content based on the count and length attributes.