Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

add support for html meta tag

Open
#6 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
security, web-dev

Research direction

Start by reproducing the error from base.tmpl at line 13 through frontend.NewServer and renderErrorPage. Trace the Go template escaping behavior for the meta element's content attribute; done means a dynamic Description renders in the requested meta tag without the reported escaping error while preserving safe HTML handling.

Written by the indexing model from the issue text.

Description

enhancement

<meta name="Description" content="{{.Description}}">

When dynamically setting the content attribute of a meta tag I get the following error.

Critical: frontend.NewServer: NewServer(...): s.renderErrorPage(http.StatusInternalServerError, nil): html/template:base.tmpl:13:36: cannot escape action {{.Description}}: actions must not occur in the "content" attribute value context of a "meta" element

This tag is useful for setting the description of a page in search results or link summary text for applications like slack and I think should be considered safe.

golang/go#40752

Dominant language
Go
Stars
380
Forks
23
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/safehtml

All issues in google/safehtml

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.