Documentation ¶
Index ¶
- Constants
- func GetTags(cate Tag) []string
- type RichText
- func (r *RichText) Parse(htmlStr string, domain string) (data []h2j, err error)
- func (r *RichText) ParseByByte(htmlByte []byte, domain string) (data []h2j, err error)
- func (r *RichText) ParseByByteV2(htmlByte []byte, domain string) (inodes []inode, err error)
- func (r *RichText) ParseByURL(urlStr string, domain string, timeout ...int) (data []h2j, err error)
- func (r *RichText) ParseMarkdown(md, domain string) (data []h2j, err error)
- func (r *RichText) ParseMarkdownByByte(mdByte []byte, domain string) (data []h2j, err error)
- type Tag
Constants ¶
View Source
const ( TagBaidu = "baidu" TagAplipay = "alipay" TagQQ = "qq" TagWeixin = "weixin" TagToutiao = "toutiao" TagUniAPP = "uni-app" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RichText ¶
type RichText struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func NewDefault() *RichText
func (*RichText) ParseByByte ¶
func (*RichText) ParseByByteV2 ¶
func (*RichText) ParseByURL ¶
func (*RichText) ParseMarkdown ¶
Click to show internal directories.
Click to hide internal directories.