I just want to remove comments and white space from an html string before saving in DB. I don't want it to be repaired and add head tags etc.
I've spent hours searching for this but can't find anything, can someone who has done this tell me what config I need and which php tidy function will just "minify" and not try and make a valid html document from an html string?