Fix another nil pointer panic in the HTML parser (ref #20)
This commit is contained in:
parent
0d4d597909
commit
4f4e78ae0c
@ -118,6 +118,9 @@ func (parser *MatrixHTMLProcessor) HandleSelfClosingTag(tagName string, attrs ma
|
||||
|
||||
func (parser *MatrixHTMLProcessor) HandleEndTag(tagName string) {
|
||||
tag := parser.openTags.Pop(tagName)
|
||||
if tag == nil {
|
||||
return
|
||||
}
|
||||
|
||||
switch tag.Tag {
|
||||
case "li", "blockquote":
|
||||
|
Loading…
Reference in New Issue
Block a user