Add the ability for options.can{Trim,Collapse}Whitespace to veto the default implemen...
authorAndreas Lind <andreas@one.com>
Mon, 22 May 2017 10:19:28 +0000 (12:19 +0200)
committerAndreas Lind <andreas@one.com>
Mon, 22 May 2017 10:19:29 +0000 (12:19 +0200)
commit67d608fece5ffa0bd826effd04efa7fb335b4da7
treecbc4b5e623b74938cea89749a1ac69023693e05a
parent19845f3d141bea1eb2adf693b06b6bf6d6e9c4ff
Add the ability for options.can{Trim,Collapse}Whitespace to veto the default implementation when that returns true.

Also, provide the default implementation as the 3rd parameter to the
custom hook so the user doesn't have to reimplement it.
src/htmlminifier.js