html2json

package
v0.0.0-...-dee0570 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TagBaidu   = "baidu"
	TagAplipay = "alipay"
	TagQQ      = "qq"
	TagWeixin  = "weixin"
	TagToutiao = "toutiao"
	TagUniAPP  = "uni-app"
)

Variables

This section is empty.

Functions

func GetTags

func GetTags(cate Tag) []string

Types

type RichText

type RichText struct {
	// contains filtered or unexported fields
}

func New

func New(customTags []string) *RichText

func NewDefault

func NewDefault() *RichText

func (*RichText) Parse

func (r *RichText) Parse(htmlStr string, domain string) (data []h2j, err error)

func (*RichText) ParseByByte

func (r *RichText) ParseByByte(htmlByte []byte, domain string) (data []h2j, err error)

func (*RichText) ParseByByteV2

func (r *RichText) ParseByByteV2(htmlByte []byte, domain string) (inodes []inode, err error)

func (*RichText) ParseByURL

func (r *RichText) ParseByURL(urlStr string, domain string, timeout ...int) (data []h2j, err error)

func (*RichText) ParseMarkdown

func (r *RichText) ParseMarkdown(md, domain string) (data []h2j, err error)

func (*RichText) ParseMarkdownByByte

func (r *RichText) ParseMarkdownByByte(mdByte []byte, domain string) (data []h2j, err error)

type Tag

type Tag string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL