blob: 5f18c1e8aa331e7ef17c3536767d0324d3c6e072 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tatsuya ISHIHARA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.dom.odf.util.converter;
/**
* Utility class used by ODF converter classes
*/
public class ODFConverterUtils {
public static String convertXMLCharacter(String val) {
String newVal = val.replaceAll("&", "&");
newVal = newVal.replaceAll("<", "&lt;");
newVal = newVal.replaceAll(">", "&gt;");
return newVal;
}
}