Revision: 6924
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6924&view=rev
Author:   dnaber
Date:     2012-05-14 21:22:03 +0000 (Mon, 14 May 2012)
Log Message:
-----------
fix: XML escape attribute values

Modified Paths:
--------------
    trunk/JLanguageTool/src/dev/org/languagetool/dev/MarkerConverter.java

Modified: trunk/JLanguageTool/src/dev/org/languagetool/dev/MarkerConverter.java
===================================================================
--- trunk/JLanguageTool/src/dev/org/languagetool/dev/MarkerConverter.java       
2012-05-14 20:21:48 UTC (rev 6923)
+++ trunk/JLanguageTool/src/dev/org/languagetool/dev/MarkerConverter.java       
2012-05-14 21:22:03 UTC (rev 6924)
@@ -45,7 +45,7 @@
  */
 public class MarkerConverter {
 
-  private static final Language LANGUAGE = Language.CATALAN;
+  private static final Language LANGUAGE = Language.GERMAN;
 
   public static void main(String[] args) throws SAXException, 
ParserConfigurationException, IOException {
     final ConverterHandler handler = new ConverterHandler();
@@ -122,7 +122,7 @@
           if (qName1.equals("mark_from") || qName1.equals("mark_to")) {
             continue;
           }
-          System.out.print(" " + qName1 + "=\"" + attrs.getValue(qName1) + 
"\"");
+          System.out.print(" " + qName1 + "=\"" + 
StringTools.escapeXML(attrs.getValue(qName1)) + "\"");
         }
         System.out.print(">");
       } else {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to