From 22d85c2a182642da010e3963d5ed5c64325aebb7 Mon Sep 17 00:00:00 2001 From: bep Date: Tue, 10 Feb 2015 14:37:29 +0100 Subject: [PATCH] Avoid converting summary to []byte and back to string --- hugolib/page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/page.go b/hugolib/page.go index 7b3e67a69..7aec841a0 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -191,7 +191,7 @@ func (p *Page) setSummary() { // If hugo defines split: // render, strip html, then split summary, truncated := helpers.TruncateWordsToWholeSentence(p.PlainWords(), helpers.SummaryLength) - p.Summary = helpers.BytesToHTML([]byte(summary)) + p.Summary = template.HTML(summary) p.Truncated = truncated }