google / google/safehtml

add support for html meta tag

Open
#6 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
380
Forks
23
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.