org.cruxframework.crux.core.utils
Class HTMLUtils
java.lang.Object
org.cruxframework.crux.core.utils.HTMLUtils
public class HTMLUtils
- extends Object
Helper class for HTML generation, according with http://dev.w3.org/html5/spec/syntax.html#elements-0
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
write
public static void write(Node node,
Writer out)
throws IOException
- Parameters:
node - out -
- Throws:
IOException
write
public static void write(Node node,
Writer out,
boolean indentOutput)
throws IOException
- Parameters:
node - out - indentOutput -
- Throws:
IOException
writeRcData
public static void writeRcData(Node child,
Writer out)
throws DOMException,
IOException
- Parameters:
child - out -
- Throws:
DOMException
IOException
writeRawText
public static void writeRawText(Node child,
Writer out)
throws DOMException,
IOException
- Parameters:
child - out -
- Throws:
IOException
DOMException
writeAttributes
public static void writeAttributes(Node node,
Writer out)
throws IOException
- Parameters:
node - out -
- Throws:
IOException
escapeHTML
public static String escapeHTML(String s)
- Parameters:
s -
- Returns:
escapeHTMLAttribute
public static String escapeHTMLAttribute(String s)
- Parameters:
s -
- Returns:
escapeJavascriptString
public static String escapeJavascriptString(String s,
boolean escapeXML)
- Parameters:
s -
- Returns:
Copyright © 2014. All rights reserved.