<button> is markup. The <button> is no different than <div>, <h1>, <p>, etc.
Somehow by the magic of technology the clipper "clips" div, h1, p, etc. AND somehow it ignores/removes button. Just don't remove it (shocking idea!!)
What I expect is a functional application. No need to over complicate the request.