]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/applet/prepecho.cpp
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git] / contrib / src / applet / prepecho.cpp
index 85f7198f72b2905512b946131aa15460194d574c..67b38016fea7ab43432c7b6733311099507e8cf4 100644 (file)
@@ -115,9 +115,14 @@ wxString wxEchoPrep::Process(
 
             // grab the value from the class, put it in tag since the data is no longer needed
             tag = wxEchoVariable::FindValue(cname, parms.c_str());
-            }
 
 
+            }
+        // remove ampersands and <> chars
+        tag.Replace("&", "&amp;");
+        tag.Replace("<", "&lt;");
+        tag.Replace(">", "&gt;");
+
         output = (output.Mid(0,i) + tag + output.Mid(i));
                }