且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

与HtmlAgilityPack在解析时删除空格和换行

更新时间:2023-12-05 17:53:52

这是文件的缩进和没有必要的空格和换行字符。
结果
我不能看到如何,这可能是一个问题,但你不能只是替换特殊characteres如\\ t的\\ n?
搜索结果
做一个快速的搜索,我发现这个的Html敏捷性包:让code看起来整齐
结果
也许设立一些属性设置为false会有所帮助。

This is the document indentation and not unnecessary whitespaces and newline characters.
I cant see how this could be a problem but cant you just replace the special characteres such as "\t", "\n" ?

Doing a fast search i found this Html Agility Pack: make code look neat
Maybe setting up some properties to false can be helpful