src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:59:41 +0000 (23:59 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:59:41 +0000 (23:59 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index d11afd1..ddcae14 100644 (file)
             "\t\t}",
             "\t}",
             "\tif (help.contents.size > 1) {",
-            "\t\tstr += (\"\\n\\n\"  + help.contents.get(1).value);",
+            "\t\tstr += (\"\\n\\n\"  + GLib.Markup.escape_text(help.contents.get(1).value));",
             "\t}",
             "\t",
             "\tthis.el.set_markup(string.joinv(\" \",str));",
index 39a9a07..ee08127 100644 (file)
@@ -586,7 +586,7 @@ public class Editor : Object
                                }
                        }
                        if (help.contents.size > 1) {
-                               str += ("\n\n"  + help.contents.get(1).value);
+                               str += ("\n\n"  + GLib.Markup.escape_text(help.contents.get(1).value));
                        }
                        
                        this.el.set_markup(string.joinv(" ",str));