dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 6a053fac33bbcb647365e9c8d7463e35cda8f047
parent 2790e8cdb5a68921ddb045eb14060e5953a11946
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  6 Apr 2023 18:05:11 -0700

fix links that have #

Diffstat:
Mpkg/web/handlers/api/v1/topBarHandler.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go @@ -797,7 +797,7 @@ var invidiousIDRgx = youtubeComIDRgx func makeHtmlLink(label, link string) string { // We replace @ to prevent colorifyTaggedUsers from trying to generate html inside the links. - r := strings.NewReplacer("@", "&#64;") + r := strings.NewReplacer("@", "&#64;", "#", "&#35;") label = r.Replace(label) link = r.Replace(link) return fmt.Sprintf(`<a href="%s" rel="noopener noreferrer" target="_blank">%s</a>`, link, label)