package mailhtml import ( "regexp" "strconv" "strings" ) // Elements that wrap other elements rather than carry copy of their own. Only // these are followed when looking for the container an email was laid out in. var layoutElements = map[string]bool{ "table": true, "tbody": true, "thead": true, "tfoot": true, "tr": true, "td": true, "th": true, "div": true, "center": true, "section": true, "article": true, "main": true, } // Table sections a row can be appended to. var tableSections = map[string]bool{ "table": true, "tbody": true, "thead": true, "tfoot": true, } // Elements that hold no layout of their own: metadata, and a line break, // which is a plausible thing to find trailing a container and should not be // read as a second one. // //