diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/html.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/html.go b/html/html.go index 2bbe921..0def587 100644 --- a/html/html.go +++ b/html/html.go @@ -42,16 +42,16 @@ var ( return Result{Result: attr} }) - tstart = Seq("<", identifier, attrs, ">") - tend = Seq("</", identifier, ">") + tstart = Seq("<", Cut, identifier, attrs, ">") + tend = Seq("</", Cut, identifier, ">") ) func init() { tag = Map(Seq(tstart, elements, tend), func(node Result) Result { openTag := node.Child[0] return Result{Result: Tag{ - Name: openTag.Child[1].Token, - Attributes: openTag.Child[2].Result.(map[string]string), + Name: openTag.Child[2].Token, + Attributes: openTag.Child[3].Result.(map[string]string), Body: node.Child[1].Result.([]interface{}), }} |