html <pre></pre> page layout blocks links

104 Views Asked by At

I am taking a document into an html page to show the user with .Net libraries' help. I am using LoadHtml method under HtmlAgilityPack. But when i use that method to fill the html, it does not show the tab(ascii=09) characters right. So i use it like:

doc.LoadHtml("<pre>" + pContent + "</pre>");

But when i do that then i can not add any picture links or pictures to the html page. normally before i use "< pre >", the user was able to add links. The code below was running behind.

string text = string.Format(@"<img src='{0}' />", thepicturelink);

My problem is that i want to make my page both could be added links(pictures) and looks proper with tab character. I could not find any solution for that in here, msdn, socialmsdn, codeproject or google. Does anyone have a solution for that problem? Thank for helps. Best regards.

0

There are 0 best solutions below