From: Florian Brosch Date: Sat, 13 Oct 2012 22:59:23 +0000 (+0200) Subject: doclet/gtkdoc: Escape text and source code X-Git-Tag: 0.37.1~3^2~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdada53286ea9ae5128b2bb330762f1e051d4a5a;p=thirdparty%2Fvala.git doclet/gtkdoc: Escape text and source code --- diff --git a/src/doclets/gtkdoc/commentconverter.vala b/src/doclets/gtkdoc/commentconverter.vala index b75891013..5f79f1a7a 100644 --- a/src/doclets/gtkdoc/commentconverter.vala +++ b/src/doclets/gtkdoc/commentconverter.vala @@ -227,7 +227,7 @@ public class Gtkdoc.CommentConverter : ContentVisitor { public override void visit_source_code (SourceCode code) { current_builder.append (""); - current_builder.append (code.code); + current_builder.append (Markup.escape_text (code.code)); current_builder.append (""); } @@ -294,7 +294,7 @@ public class Gtkdoc.CommentConverter : ContentVisitor { } public override void visit_text (Text t) { - current_builder.append (t.content); + current_builder.append (Markup.escape_text (t.content)); t.accept_children (this); } }