We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a1e82 commit afbcd7fCopy full SHA for afbcd7f
1 file changed
src/main/java/edu/uiowa/slis/graphtaglib/NodeLabel.java
@@ -17,7 +17,12 @@ public int doStartTag() throws JspException {
17
Node theNode = (Node) findAncestorWithClass(this, Node.class);
18
logger.trace("");
19
try {
20
- pageContext.getOut().print(theNode.getLabel());
+ pageContext.getOut().print(theNode.getLabel()
21
+ .replace("\t", "\\t")
22
+ .replace("\b", "\\b")
23
+ .replace("\n", "\\n")
24
+ .replace("\r", "\\r")
25
+ .replace("\f", "\\f"));
26
} catch (IOException e) {
27
e.printStackTrace();
28
}
0 commit comments