Fix unbalanced brackets in html for clipboard