Skip to content

Conversation

@wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Dec 9, 2024

Golang template considers href, *src*, *uri*, *url* (and more) ... attributesas contentTypeURL and does auto-escaping

The behavior is tested by Golang's template package, while I think it is still good to clarify it in our template system, and we could ensure more behaviors in the future.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 9, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Dec 9, 2024
@wxiaoguang wxiaoguang marked this pull request as draft December 9, 2024 03:36
@wxiaoguang wxiaoguang closed this Dec 11, 2024
@wxiaoguang wxiaoguang deleted the test-golang-tmpl branch December 31, 2024 07:55
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants