Skip to content

add support for html meta tag #6

@jamalc

Description

@jamalc

<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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions