New Post: HtmlAgilitypack on strings C#
How about this. will require 2 passes.. result:<b>For testing of </b><i>API </i>calls in <b>Incident API</b>.string v = "<p style=\"margin: 0px 0px 12px...
View ArticleNew Post: HtmlAgilitypack on strings C#
p.s I changed the html you sent and added an extra bold in there for testing.
View ArticleNew Post: HtmlAgilitypack on strings C#
thanks so much, im going to try this now. should i just be able to add this into my code of do i need to reference the description field at all?
View ArticleNew Post: HtmlAgilitypack on strings C#
replace report.Description = Regex.Replace(report.Description, "<.*?>| ", string.Empty); with the followingRegex r = new Regex(@"<span...
View ArticleNew Post: HtmlAgilitypack on strings C#
thanks for the clarification but unfortunetly it doesnt look like its taking the formatting....this is what I got this time: For testing of <i>API </i>calls in <b>Incident API</b>.
View ArticleNew Post: HtmlAgilitypack on strings C#
That is correct tho isn't it? you wanted the bold and italic formatting to stay and only the text and italic and bold to remain?
View ArticleNew Post: using htmlagilitypack with ajax div load c#
this is an unusual request as probably would be better to get the information from the ajax call its self rather than request the page which then calls the ajax request and renders the page using that...
View ArticleNew Post: HtmlAgilitypack on strings C#
yes that is correct but i was hoping that i would actualy see the text bold and italics instead of seeing the tags...does that make sense and is that possible?
View ArticleNew Post: HtmlAgilitypack on strings C#
ok you have to actuall create a font for each part of the text and draw that.. bit annoying for you but here is a sample of how I'd do it. you could also try this companies html to pdf software I use...
View ArticleNew Post: HtmlAgilitypack on strings C#
thank you so much for all your help and support, you have no idea how much I appreciate it. For the example above because i am pulling in different incidents with different description fields will this...
View ArticleNew Post: HtmlAgilitypack on strings C#
It's no problem.. What you should do is create a function that will loop through all incidents and and set v as report description foreach (var incident in incidents){...
View ArticleNew Post: HtmlAgilitypack on strings C#
wow i cant thank you enough. i will try this later today and let you no how it goes. thank you again !
View ArticleNew Post: HtmlAgilityPack 1.4.6 gzip is not a supported encoding name
Im trying to load a webpage but i keep getting the following error: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: 'gzip' is not a supported...
View ArticleNew Post: HtmlAgilitypack on strings C#
Hi Lee, Sorry it took so long to get back to you...i tested out the code and the good news it that it looks like it is displaying the bold text however the way it is being displayed on the page is...
View ArticleNew Post: Examples how to use this library for Windows Phone and/or Windows 9
I am looking for some sample code how to use this library. Looked at the documentation, and it is empty, i.e. no verbiage just title. Is the project still active and/or alive? Thanks, Eitan
View ArticleNew Post: HtmlAgilitypack on strings C#
Hi @LeeJeary, would you have any idea how i can display the text one after another instead of overlapping? it looks like if there is bold or italic text in the string it is being placed on top of...
View ArticleNew Post: Version for compact framework?
I want to get mor useful and detailed information on the mentioned barcode reader. I have donens of 2d barcodes need to be scanned by using a simpel to use barcode reading application.
View ArticleNew Post: How to scrape some data from a website using HTMLAgilityPack
I have the following Crawler.cs helper class: _using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace...
View ArticleNew Post: Extract href by anchor text?
I see that this was never answer, but just in case someone else is looking for answer, here is one way of doing it: var htmlDoc = new HtmlDocument(); htmlDoc.LoadHtml({yourHtmlContentOrFile}); var...
View Article