Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Is there any way to update the OuterHtml?

$
0
0
Is there any solution to update the OuterHtml, like we can update the InnerHtml? Or, probably there is another solution than OuterHtml?

Here is my case:
Currently, I have this html string:
<div id="table-timesheet-preview" class="{MO-CSS-CLASS value="TimeSheet"}">
</div>

And I want to change it to be:
<div id="table-timesheet-preview" class='{MO-CSS-CLASS value="TimeSheet"}'>
</div>

My logic is by getting the div based on "table-timesheet-preview", retrieving the OuterHtml (readonly), and ???

I can't use the InnerHtml, because it only contains of the inside html of "table-timesheet-preview", not the div itself.

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>