Skip to content

Commit

Permalink
[libdom] Replace & by & . Refs #356
Browse files Browse the repository at this point in the history
  • Loading branch information
rkd77 committed Jan 9, 2025
1 parent 8e2074d commit 94c6cd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/document/libdom/renderer2.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ dump_dom_element(void *mapa, void *mapa_rev, struct string *buf, dom_node *node,
add_to_string(buf, "<");
} else if (!in_script && length == 1 && *string_text == '>') {
add_to_string(buf, ">");
} else if (!in_script && length == 1 && *string_text == '&') {
add_to_string(buf, "&");
} else {
add_bytes_to_string(buf, string_text, length);
}
Expand Down

0 comments on commit 94c6cd0

Please sign in to comment.