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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…