Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractImageURLs ¶
ExtractImageURLs finds image URLs from <img src> tags and <figure data-trix-attachment> elements.
func ParseTopicEntriesHTML ¶
ParseTopicEntriesHTML extracts structured entry data from the HTML page served by /topics/{id}/entries. The JSON API does not return full entry bodies, so this HTML-based extraction is required.
func PrependText ¶
PrependText adds a plain-text note before existing HTML content.
Types ¶
type Attachment ¶
type Attachment struct {
URL string
Filename string
ContentType string
ByteSize *int64
SGID string
}
Attachment describes a downloadable file embedded in rich-text content.
func ExtractAttachments ¶
func ExtractAttachments(s string) []Attachment
ExtractAttachments returns downloadable files in their document order.
type TopicAddressed ¶
TopicAddressed holds the To, CC, and BCC recipients for a topic.
func ParseTopicAddressed ¶
func ParseTopicAddressed(html string) *TopicAddressed
ParseTopicAddressed extracts To/CC/BCC recipients from a topic's HTML page.
Click to show internal directories.
Click to hide internal directories.