Contact preview example

Default

How it looks (preview)

Unable to generate preview

Government Legal Department

Croydon, CR90 9QU

Find contact details and the opening hours.

How to call this example

<%= render "components/contact_preview", {
  html: sanitize("<div class=\"gem-c-govspeak\">
      <div class=\"contact\">
        <div class=\"content\">
          <h3>Government Legal Department</h3>
          <div class=\"vcard contact-inner\">
            <p class=\"adr\">Croydon, CR90 9QU</p>
          </div>
          <p class=\"comments\">Find contact details and the opening hours.</p>
        </div>
      </div>
    </div>
    "),
  error_message: "Unable to generate preview"
} %>