\n\nhtml\n\n " It does convert the above to "
h" /> \n\nhtml\n\n
" It does convert the above to "
h" /> \n\nhtml\n\n
" It does convert the above to "
h"/>

Is it possible to remove all inter-tag spaces in an HTML string?

140 views Asked by At

I am using htmlcompressor lib.

The compress method does the job.

If the input is say "<div> \n\nhtml\n\n </div>"

It does convert the above to "<div> html </div>"

It still leaves at least single space around the tags. Is there a way, to say get rid of this with this lib. If not do we have a compressor that does a better job?

0

There are 0 answers