This error message will include the full html validation details, with a path to the snapshot to assist resolving the invalid html
Examples:
ValidateHTML.validate_html('<strong><em>Very Emphasized</strong></em>',name:'My Emphasized Fragment')# raises: ValidateHTML::InvalidHTMLError with this message:## Invalid html from My Emphasized Fragment (ValidateHTML::InvalidHTMLError)# Parsed using Nokogiri::HTML5::DocumentFragment# document saved at: [Configuration#snapshot_path]/1a8ce99806ddeccc3a5f2904ba07c7fa5ae4659d.html## 1:28: ERROR: That tag isn't allowed here Currently open tags: html, strong, em.# <strong><em>Very Emphasized</strong></em># ^# 1:37: ERROR: That tag isn't allowed here Currently open tags: html.# <strong><em>Very Emphasized</strong></em># ^