return text;
}
- public static String getXhtmlSafeString(String x) throws MXhtmlUnsafeStringTextException {
+ public static String getXhtmlSafeString(String x) throws MXhtmlUnsafeStringException {
if (null == x) {
return null;
}
catch (ParserConfigurationException exception) { // cannot happen
}
catch (SAXException exception) {
- throw new MXhtmlUnsafeStringTextException("Invalid 'x': unsafe tags or attributes inside.", exception);
+ throw new MXhtmlUnsafeStringException("Invalid 'x': unsafe tags or attributes inside.", exception);
}
catch (UnsupportedEncodingException exception) { // cannot happen
}
--- /dev/null
+/**
+ * Macaco
+ * Copyright (c) 2009-2015 Marco Zanon <info@marcozanon.com>.
+ * Released under MIT license (see LICENSE for details).
+ */
+
+package com.marcozanon.macaco.text;
+
+@SuppressWarnings("serial")
+public class MXhtmlUnsafeStringException extends MTextException {
+
+ /* */
+
+ public MXhtmlUnsafeStringException() {
+ super();
+ }
+
+ public MXhtmlUnsafeStringException(String message) {
+ super(message);
+ }
+
+ public MXhtmlUnsafeStringException(Throwable error) {
+ super(error);
+ }
+
+ public MXhtmlUnsafeStringException(String message, Throwable error) {
+ super(message, error);
+ }
+
+}
+++ /dev/null
-/**
- * Macaco
- * Copyright (c) 2009-2015 Marco Zanon <info@marcozanon.com>.
- * Released under MIT license (see LICENSE for details).
- */
-
-package com.marcozanon.macaco.text;
-
-@SuppressWarnings("serial")
-public class MXhtmlUnsafeStringTextException extends MTextException {
-
- /* */
-
- public MXhtmlUnsafeStringTextException() {
- super();
- }
-
- public MXhtmlUnsafeStringTextException(String message) {
- super(message);
- }
-
- public MXhtmlUnsafeStringTextException(Throwable error) {
- super(error);
- }
-
- public MXhtmlUnsafeStringTextException(String message, Throwable error) {
- super(message, error);
- }
-
-}