escape identifiers that may contain special chars (e.g.  <div id="id.with,special#characters">)