go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go
http://tegola.io/
MIT License
1.26k stars 193 forks source link

Link in attribution #798

Closed underspica closed 2 years ago

underspica commented 2 years ago

Is there a way to display link in attribution field like Mapbox or MapTiler? I think this line escape all html tag: https://github.com/go-spatial/tegola/blob/v0.14.x/cmd/internal/register/maps.go#L14

ARolek commented 2 years ago

@underspica I think you're right. We should probably have some form of sanitization but I think escaping HTML is the wrong thing to do there. Would you be interested in sending in a PR? We're really close to cutting the v0.14.0 release so you could probably sneak it in.

underspica commented 2 years ago

Here is the PR #806 and some test cases https://play.golang.org/p/QL8w1w6xd54