When process html with template engin, we may get a large file which contains useless white spaces everywhere. To minimized the spaces the engin processed is an important thing to do to accelerate the transform speed. There are two kinds of spaces which can be minimized . One is between the tags. Anther one is between the attribute gaps. The first one seems to be easy to remove(AbstraceTextProcessor). The latter one seems hard to process. I wrote a processor but seem too inefficient.
AttributesInnerWhitespacesProcessor、EmptyTextProcessor
Any alternative ideas?