How to clean up poorly formed HTML using HTML Agility Pack

前端 未结 3 638
时光取名叫无心
时光取名叫无心 2021-02-15 13:41

I am attempting to replace this god awful collection of regular expressions that is currently used to clean up blocks of poorly formed HTML and stumbled upon the HTML Agility Pa

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-15 14:15

    Once you find the

    element use the InnerText method to get the text, Then do the remove and then insert the text.

提交回复
热议问题