You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const testContentJSON = `[{"tag":"p","children":["Hello, ",{"tag":"b","children":["world"]},"! This is an ",{"tag":"a","attrs":{"href":"https://example.com"},"children":["example link"]},"."]}]`
func TestHTMLToContent(t *testing.T) {
htmlStr := `<p>Hello, <b>world</b>! This is an <a href="https://example.com">example link</a>.</p>`