Versions in this module Expand all Collapse all v1 v1.0.0 Sep 13, 2021 Changes in this version + var HTMLText htmlText + var PlainText plainText + type AttrFilterFunc func(string) []byte + func (a AttrFilterFunc) AttrFilter(attr string) []byte + type AttrFilterer interface + AttrFilter func(string) []byte + type AttributeTag struct + func NewAttributeTag(name string, open, openClose, attrOpen, attrClose, close []byte, ...) *AttributeTag + func (a *AttributeTag) Close(p *Processor, attr string) + func (a *AttributeTag) Handle(p *Processor, attr string) + func (a *AttributeTag) Name() string + func (a *AttributeTag) Open(p *Processor, attr string) + type BBCode struct + func New(tags ...Handler) *BBCode + func NewWithConfig(c Config, tags ...Handler) *BBCode + func (b *BBCode) Convert(w io.Writer, input []byte) error + func (b *BBCode) ConvertReader(w io.Writer, input io.Reader) error + func (b *BBCode) ConvertString(w io.Writer, input string) error + type CloseTag struct + Name string + type Config struct + AttributeSep rune + ClosingTag rune + TagClose rune + TagOpen rune + ValidTagName string + type FilterTag struct + func NewFilterTag(o OpenClose, filter func(string) bool) *FilterTag + func (f *FilterTag) Handle(p *Processor, attr string) + type Handler interface + Handle func(*Processor, string) + Name func() string + type OpenClose interface + Close func(*Processor, string) + Name func() string + Open func(*Processor, string) + type OpenTag struct + Attr *string + Name string + type Processor struct + func (p *Processor) Get() interface{} + func (p *Processor) GetContents(untilTag string) string + func (p *Processor) Print(t interface{}) + func (p *Processor) Process(untilTag string) bool + func (p *Processor) ProcessTag(t OpenTag) + func (p *Processor) Write(b []byte) (int, error) + type Tag struct + func NewTag(name string, open, close []byte) *Tag + func (t *Tag) Close(p *Processor, attr string) + func (t *Tag) Handle(p *Processor, attr string) + func (t *Tag) Name() string + func (t *Tag) Open(p *Processor, attr string) + type Text []string