Documentation ¶
Index ¶
- Variables
- func AssertElement(n *html.Node, a atom.Atom) error
- func AssertText(n *html.Node, t string) error
- func Convert(h string) (bb string, err error)
- func FirstChild(n *html.Node) *html.Node
- func GetAttr(n *html.Node, key string) (string, error)
- func Next(n *html.Node) *html.Node
- func Parent(n *html.Node) *html.Node
- func ParseStyle(style string) (sk, sv string, err error)
- func PartOfAttributedQuote(n *html.Node) bool
- func PartOfHidden(n *html.Node) bool
- func PartOfLinkedQuote(n *html.Node) bool
- func Prev(n *html.Node) *html.Node
- func Text(n *html.Node) string
- type BBCode
- func (bc *BBCode) A(n *html.Node) error
- func (bc *BBCode) Blockquote(n *html.Node) error
- func (bc *BBCode) Div(n *html.Node) error
- func (bc *BBCode) DivStyle(n *html.Node, v string) error
- func (bc *BBCode) Hr(n *html.Node) error
- func (bc *BBCode) Img(n *html.Node) error
- func (bc *BBCode) Node(n *html.Node, tag string) error
- func (bc *BBCode) NodeData(n *html.Node, tag string) error
- func (bc *BBCode) NodeLiteral(n *html.Node, tag string, l string) error
- func (bc *BBCode) NodeVal(n *html.Node, tag, v string) error
- func (bc *BBCode) NodeValData(n *html.Node, tag, v string) error
- func (bc *BBCode) Span(n *html.Node) error
- func (bc *BBCode) SpanStyle(n *html.Node, v string) error
- func (bc *BBCode) Strong(n *html.Node) error
- func (bc *BBCode) Url(n *html.Node, href string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LinkedQuoteRE = regexp.MustCompile(
`^QuoteJump\(event, '([^']+)'\); return false;$`)
Functions ¶
func Convert ¶
Convert takes an HTML formatted string, and returns a BBCode formattted string or an error if it can't convert it some logic is based on the Gazelle PHP converter
func ParseStyle ¶
func PartOfAttributedQuote ¶
func PartOfHidden ¶
func PartOfLinkedQuote ¶
Types ¶
type BBCode ¶
func (*BBCode) NodeLiteral ¶
Click to show internal directories.
Click to hide internal directories.