diff options
-rw-r--r-- | gomponents_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gomponents_test.go b/gomponents_test.go index 3064c0f..db2dfee 100644 --- a/gomponents_test.go +++ b/gomponents_test.go @@ -205,9 +205,11 @@ func TestRaw(t *testing.T) { } func ExampleRaw() { - e := g.El("span", g.Raw("<strong>Party</strong> hats > normal hats.")) + e := g.El("span", + g.Raw(`<button onclick="javascript:alert('Party time!')">Party hats</button> > normal hats.`), + ) _ = e.Render(os.Stdout) - // Output: <span><strong>Party</strong> hats > normal hats.</span> + // Output: <span><button onclick="javascript:alert('Party time!')">Party hats</button> > normal hats.</span> } func TestGroup(t *testing.T) { |