This commit is contained in:
2026-07-15 13:09:56 +02:00
parent 5cc4e43431
commit b244a89eae
3 changed files with 116 additions and 46 deletions
+3 -1
View File
@@ -5,8 +5,10 @@ import "core:strings"
import "core:unicode"
escape_html :: proc(s: string, allocator := context.temp_allocator) -> string {
escaped := decode_escapes(s, allocator)
b := strings.builder_make(allocator)
for ch in s {
for ch in escaped {
switch ch {
case '&':
strings.write_string(&b, "&")