Add check for summary element of entry

This commit is contained in:
2024-10-15 19:32:14 +02:00
parent 9920e077eb
commit b08b62e794
6 changed files with 50 additions and 7 deletions

View File

@@ -8,7 +8,11 @@ type InlineTextContent struct {
Texts []string `xml:"texts,omitempty"`
}
func (i *InlineTextContent) IsContent() bool { return true }
func (i *InlineTextContent) isContent() bool { return true }
func (i *InlineTextContent) hasSRC() bool { return false }
func (i *InlineTextContent) getType() string { return i.Type }
func (i *InlineTextContent) Check() error {
if i.Type != "" && i.Type != "text" && i.Type != "html" {