Parsing html with the HTML Agility Pack and Linq

前端 未结 5 1579
别跟我提以往
别跟我提以往 2021-02-02 18:21

I have the following HTML

(..)

 
   Test1 
   Data 
  

        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 18:55

    instead of

    td.InnerText == "Test1"
    

    try

    td.InnerText == " Test1 "
    

    or

    d.InnerText.Trim() == "Test1"
    

提交回复
热议问题