Clean HTML for contracts with bearer