package classes import ( "strings" "testing" ) // TestFormatHTMLRejectsUnsafeHTML substitutes JOURNAL-003/004 Twig XSS // templates (Phase 16). Script, iframe, event handlers, and javascript / // vbscript / data schemes must fail the reject gate. Footnotes and tables // from goldmark extensions still pass. func TestFormatHTMLRejectsUnsafeHTML(t *testing.T) { html, err := FormatHTML("# Hello") if err != nil || !strings.Contains(html, "