Registry / utility / vanng822-go-premailer

vanng822-go-premailer

JSON →
library1.34.0gogounverified

Package go-premailer inlines CSS styles into HTML emails for better email client compatibility.

go get github.com/vanng822/go-premailer
INSTALL
IMPORT
SIG · VANNG822-GO-PREMAI
V
vanng822-go-premailer
utilitygov1.34.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

premailer
github.com/vanng822/go-premailer

Inlines CSS styles from an HTML string into inline styles.

package main import ( "fmt" "github.com/vanng822/go-premailer" ) func main() { html := `<html><head><style>h1 { color: red; }</style></head><body><h1>Hello</h1></body></html>` prem, _ := premailer.NewPremailerFromString(html, nil) inlined, _ := prem.Transform() fmt.Println(inlined) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.34.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
vanng822-go-premailer — go get vanng822-go-premailer · libregistry