diff options
-rw-r--r-- | htmlbasic.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/htmlbasic.go b/htmlbasic.go index 2340c23..b7186bc 100644 --- a/htmlbasic.go +++ b/htmlbasic.go @@ -85,6 +85,8 @@ func HTMLBasicTokenize(htmlStr string) (list []HTMLBasicSegmentType) { seg.Attr = nil list = append(list, seg) } + } else { + list = append(list, HTMLBasicSegmentType{Cat: 'T', Str: htmlStr, Attr: nil}) } return } |