Pull in your SEO Friendly Meta Description & Keywords

Description

The SEO fields in Page Properties > Advanced Properties collect meta description and meta keywords.  A simple regex string replace here to remove leading & trailing white space.

Code

${esc.hash}set(${esc.dollar}RegexPatternLeadingWhiteSpaceTrailingLineBreaks = "(^\s*|[\n\t\r])")
${esc.hash}if (${esc.dollar}UtilMethods.isSet(${esc.dollar}HTMLPAGE_KEYWORDS))
	<META name="keywords" lang="en-us" content="${esc.dollar}HTMLPAGE_KEYWORDS.replaceAll(${esc.dollar}RegexPatternLeadingWhiteSpaceTrailingLineBreaks, "")">
${esc.hash}end
${esc.hash}if (${esc.dollar}UtilMethods.isSet(${esc.dollar}HTMLPAGE_DESCRIPTION))
	<META name="description" lang="en-us" content="${esc.dollar}HTMLPAGE_DESCRIPTION.replaceAll(${esc.dollar}RegexPatternLeadingWhiteSpaceTrailingLineBreaks, "")">
${esc.hash}end