按標籤拆分值
HtmlAgility

c# html-agility-pack

我從ChildNode.InnerHtml獲取值為

20th Aug 2013<br>Ojas Systems <br> Pune <br> Software

如何通過HtmlAgilty拆分生成的InnerHtml中的值。我嘗試將InnerHtml轉換為字符串,但它會引發錯誤

方法'Write'沒有重載需要0個參數

可能是因為未關閉的html標籤,但後來可能是什麼解決方案下面是返回的InnerHtml

<a href="http://jobs.monsterindia.com/details/13826093.html?sig=js-1- 4f08ba3c3102de443076cfb01e15745e-1&from=" target="_blank" id="link13826093">.Net java </a>, 20th Aug 2013<br>Ojas Systems Private Limited<br> Pune, 0-0 years: Looking for freshers who is trained in .Net Java.The location will be Pune.Preferably passed in 2012-2013. <br><a href="javascript:findSimilar(13826093)">Similar Jobs</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="http://jobsearch.monsterindia.com/searchresult.html?cid=117314;lan=1">All Jobs by this Recruiter</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="javascript:void(0)" onclick="javascript:openSocialTwist({EXP:'Experience - 0 to 0 years',LINK:'http://jobs.monsterindia.com/details/13826093.html',COMP:'Company Name - Ojas Systems Private Limited',LOC:'Location - Pune',ROLE:'',KWD:'Key skills - .net java',TTL:'Job Title - .Net java '})">Share this job</a>

熱門答案

採取形式這里為我工作

string str = "hai<br/>how<br/>Are<br/>you";

            string[] delim = { "<br/>" };

            string[] spltd = str.Split(delim, StringSplitOptions.None);


許可下: CC-BY-SA with attribution
不隸屬於 Stack Overflow
這個KB合法嗎? 是的,了解原因
許可下: CC-BY-SA with attribution
不隸屬於 Stack Overflow
這個KB合法嗎? 是的,了解原因