From 86785be5880be4a48696af492d6a83a11184934c Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 17 Oct 2024 17:19:43 +0200 Subject: [PATCH] More ",chardata" --- date.go | 2 +- inlineOtherContent.go | 2 +- inlineTextContent.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/date.go b/date.go index 4827f13..309b165 100644 --- a/date.go +++ b/date.go @@ -7,7 +7,7 @@ import ( type Date struct { *CommonAttributes - DateTime string + DateTime string `xml:",chardata"` } // DateTime formats a time.Time to string formated as defined by RFC3339. It diff --git a/inlineOtherContent.go b/inlineOtherContent.go index 8b8b9ea..4c5eb75 100644 --- a/inlineOtherContent.go +++ b/inlineOtherContent.go @@ -8,7 +8,7 @@ import ( type InlineOtherContent struct { *CommonAttributes - AnyElement any `xml:"anyelement,omitempty"` + AnyElement any `xml:",chardata"` Type MediaType `xml:"type,attr,omitempty"` } diff --git a/inlineTextContent.go b/inlineTextContent.go index 58a9338..8365292 100644 --- a/inlineTextContent.go +++ b/inlineTextContent.go @@ -9,7 +9,7 @@ import ( type InlineTextContent struct { *CommonAttributes Type string `xml:"type,attr,omitempty"` // Must be text or html - Texts []string `xml:"texts,omitempty"` + Texts []string `xml:",chardata"` } // newInlineTextContent creates a new InlineTextContent. It returns a