Modify HTML file in a c sharp class

后端 未结 4 887
Happy的楠姐
Happy的楠姐 2021-01-20 21:17

First of all my application is not a web application. My aim is reading html files and modify them.

So that I write this code:

    string fileName =         


        
4条回答
  •  逝去的感伤
    2021-01-20 21:56

    You can load the HTML as XML using XElement etc, but ultimately if you are removing or inserting characters you will need to resize the file and relocate the characters.

提交回复
热议问题