[gnome-builder] plugins/xml-pack: escape comments for markup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/xml-pack: escape comments for markup
- Date: Tue, 20 Sep 2022 08:43:27 +0000 (UTC)
commit c093e246ed0c6d49e1829e9b17c8c76946705ca4
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 20 01:40:41 2022 -0700
plugins/xml-pack: escape comments for markup
src/plugins/xml-pack/ide-xml-parser-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/xml-pack/ide-xml-parser-generic.c b/src/plugins/xml-pack/ide-xml-parser-generic.c
index 378b7e8c9..926fa0d26 100644
--- a/src/plugins/xml-pack/ide-xml-parser-generic.c
+++ b/src/plugins/xml-pack/ide-xml-parser-generic.c
@@ -86,7 +86,7 @@ ide_xml_parser_generic_comment_sax_cb (ParserState *state,
g_assert (IDE_IS_XML_PARSER (self));
- strip_name = g_strstrip (g_strdup ((const gchar *)name));
+ strip_name = g_strstrip (g_markup_escape_text ((const gchar *)name, -1));
node = ide_xml_symbol_node_new (strip_name, NULL, NULL, IDE_SYMBOL_KIND_XML_COMMENT);
ide_xml_parser_state_processing (self, state, "comment", node, IDE_XML_SAX_CALLBACK_TYPE_COMMENT, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]