c# - Innerhtml not returning style tag -
i have html content within div <div id="divprint">
looks like.
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-16"> <meta http-equiv="x-ua-compatible" content="ie=emulateie7"> <title>05 july 2013</title> <style type="text/css">.index-departmentheading, .index-gazettetitle { font-weight: bold; font-size: 8pt; margin: 12pt 0px 8pt; }.index-noticetype { font-size: 8pt; margin-top: 6pt; }.index-noticetitle { font-size: 8pt; margin-top: 4pt; }</style> <link type="text/css" rel="stylesheet" href="../styles/bwcommon.css"> <link type="text/css" rel="stylesheet" href="../styles/sitecommon.css"> <link type="text/css" rel="stylesheet" href="../templates/itax_generic.css"> </head> <body onload="if(parent.settools)parent.settools()"><p class="articleheading" style="text-align:center">05 july 2013</p> </body> </html>
in codebehind retrieve content code :
var tempstring = divprint.innerhtml; var htmlstring = httputility.htmldecode(tempstring);
the variable tempstring returns html excludes style tags , content. using firefox. please assist.
i need string include style
tag.
Comments
Post a Comment