diff --git a/category.go b/category.go index 28358c3..1db4228 100644 --- a/category.go +++ b/category.go @@ -10,7 +10,7 @@ type Category struct { *CommonAttributes Term string `xml:"term,attr"` Scheme string `xml:"scheme,attr,omitempty"` // IRI - Label string `xml:"label,attr,omitempty"` + Label string `xml:"label,attr,omitempty"` // Must be unescaped } // NewCategory creates a new Category. It returns a *Category. @@ -21,11 +21,6 @@ func NewCategory(term string) *Category { } } -// SetLabel sets the Label attribute of the Category. -func (c *Category) SetLabel(label string) { - c.Label = Unescape(label) -} - // Check checks the Category for incompatibilities with RFC4287. It returns an // error. func (c *Category) Check() error {