const HtmlEscaper = struct
const HtmlEscaper = struct { unescaped: []const u8, pub fn format(he: HtmlEscaper, w: *std.Io.Writer) !void { for (he.unescaped) |c| switch (c) { '&' => try w.writeAll("&"), '<' => try w.writeAll("<"), '>' => try w.writeAll(">"), '"' => try w.writeAll("""), '\'' => try w.writeAll("'"), else => try w.writeByte(c), }; } }