initial commits

master
Charles Iliya Krempeaux 2024-02-15 09:05:53 -08:00
parent 689f44adf7
commit 6c43a3ee38
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package frameproto
import (
"sourcecode.social/reiver/go-htmlescape"
)
const metaBegin string =
`<meta property="`
const metaMiddle string =
`" content="`
const metaEnd string =
`" />` + "\n"
func appendMetaPropertyContent(p []byte, property string, content string) []byte {
p = append(p, metaBegin...)
p = append(p, htmlescape.String(property)...)
p = append(p, metaMiddle...)
p = append(p, htmlescape.String(content)...)
p = append(p, metaEnd...)
return p
}