How to filter useless spaces in ASP.NET output HTML
This article "how to filter ASP.NET output HTML useless spaces" article knowledge point most people do not understand, so Xiaobian to you summarized the following content, detailed content, clear steps, with a certain reference value, I hope you can read this article to gain, let's take a look at this article "how to filter ASP.NET output HTML useless spaces" article bar.
The code is as follows:
1publicclassFilterHtmlTextWriter:HtmlTextWriter
2{
3publicFilterHtmlTextWriter(TextWriterwriter,stringtabString)
4:base(writer,tabString)
5{
6}
7
8publicnewintIndent
9{
10get{return0;}//always returns 0
11set{base.Indent=0;}//always set to 0
12}
13}
The above is about "how to filter ASP.NET output HTML useless spaces" the content of this article, I believe we all have a certain understanding, I hope the content shared by Xiaobian is helpful to everyone, if you want to know more related knowledge content, please pay attention to the industry information channel.