code: func (ns *Namespace) HTMLAttr(a interface{}) (template.HTMLAttr, error) {
  	s, err := cast.ToStringE(a)
  	return template.HTMLAttr(s), err
  }
docs: // HTMLAttr returns a given string as html/template HTMLAttr content.