Documentation ¶
Index ¶
- func EscapeAttribute(s string) string
- func EscapeCharData(s string) string
- func EscapeString(s string) string
- func NormalizeURL(s string) string
- func XMLStripTags(xmlcontent string) (string, error)
- func XMLText(decoder *xml.Decoder) (string, error)
- type Encoder
- func (enc *Encoder) Depth() int
- func (enc *Encoder) Encode(token xml.Token) error
- func (enc *Encoder) Flush() error
- func (enc *Encoder) Stack() []string
- func (enc *Encoder) WriteEnd(tag string) error
- func (enc *Encoder) WriteRaw(data string) error
- func (enc *Encoder) WriteStart(tag string, attrs ...xml.Attr) error
- func (enc *Encoder) WriteXMLEnd(token *xml.EndElement) error
- func (enc *Encoder) WriteXMLStart(token *xml.StartElement) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeAttribute ¶
func EscapeCharData ¶
func EscapeString ¶
func NormalizeURL ¶
NormalizeURL normalizes url to be safely included as an href based on golang.org/pkg/html/template
func XMLStripTags ¶
Types ¶
type Encoder ¶
type Encoder struct { RewriteID string // contains filtered or unexported fields }
func NewEncoder ¶
func (*Encoder) WriteXMLEnd ¶
func (enc *Encoder) WriteXMLEnd(token *xml.EndElement) error
func (*Encoder) WriteXMLStart ¶
func (enc *Encoder) WriteXMLStart(token *xml.StartElement) error
Click to show internal directories.
Click to hide internal directories.