diff --git a/appendmetapropertycontent.go b/appendmetapropertycontent.go new file mode 100644 index 0000000..62e694f --- /dev/null +++ b/appendmetapropertycontent.go @@ -0,0 +1,25 @@ +package frameproto + +import ( + "sourcecode.social/reiver/go-htmlescape" +) + +const metaBegin 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 +}