mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-08 14:33:16 -06:00
minify email html before sending
This commit is contained in:
parent
42881aa0f1
commit
d3a80b69f0
7 changed files with 31 additions and 9 deletions
|
|
@ -25,8 +25,8 @@ import (
|
|||
|
||||
var m *minify.M
|
||||
|
||||
// minifyHTML runs html through a minifier, reducing it in size.
|
||||
func minifyHTML(in string) (string, error) {
|
||||
// MinifyHTML runs html through a minifier, reducing it in size.
|
||||
func MinifyHTML(in string) (string, error) {
|
||||
if m == nil {
|
||||
m = minify.New()
|
||||
m.Add("text/html", &html.Minifier{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue