From 6c43a3ee38bcc0eae2cb38e8b757cc14e572fa42 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 15 Feb 2024 09:05:53 -0800 Subject: [PATCH] initial commits --- appendmetapropertycontent.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 appendmetapropertycontent.go 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 +}