From: Omar Polo Subject: gotwebd: some html fixes To: gameoftrees@openbsd.org Date: Fri, 19 Aug 2022 19:30:59 +0200 as all the tragic stories goes, it all started with a simple goal of making the W3C validator happy and endend up in pain and (html) escaping. The w3c validator complained about three things: - invalid target=_sotd in a link - unexpected `alt' attribute on some links - missing lang on the html tag. the last one is questionable: we don't really know in what language the commits will be (especially when they don't need to be in the same language!) but still i think that since the whole UI is in english there's not much harm in setting lang=en. Then, I saw a few places where we forgot to escape some strings and re-cheked all the fcgi_printf calls. So, I'd like to propose diff below. it's actually two commit together, I'm bundling them here because it's easier. It fixes the issue reported by the w3c validator and escapes all the potential unsafe strings I've found. There's still a bit that's missing and it's properly URL-escape links, which is different from the html escaping, but i'd like to address that in a follow up commit. gotwebd needs to learn how to percent-decode querystrings too. I have this diff on my instance, now I can render 'funny' trees with files like '