Open GoogleCodeExporter opened 9 years ago
The "allowEmpty: true" part of my request could be implemented with the
following two changes:
Line 35 change to:
options.allowEmpty = options.allowEmpty === true ? true :
tagAllowEmpty.concat(options.allowEmpty);
Line 429 change to:
this.allowEmpty = options && ((options.allowEmpty === true && this.name !=
'xxx') || $.inArray(this.name, options.allowEmpty) > -1);
Original comment by machineg...@gmail.com
on 16 Jan 2014 at 6:52
One more thought: while I (and I imagine others) use this tool as a formatter,
the original intent of the library seems to be more about converting large
chunks of hard-to-read HTML in to smaller chunks of easy to read HTML.
Given that, my suggestion "all of those options should default to true" might
make more sense for a (new) secondary command. In other words, what if there
was .htmlClean, which works exactly as it does now (ie. it very greedily tries
to remove irrelevant HTML), and then a new .htmlFormat, which doesn't remove
anything, and just formats the HTML?
Just a thought.
Original comment by machineg...@gmail.com
on 16 Jan 2014 at 8:55
Original issue reported on code.google.com by
machineg...@gmail.com
on 16 Jan 2014 at 6:40