Created
March 20, 2011 00:50
-
-
Save dustingetz/877957 to your computer and use it in GitHub Desktop.
stateful html generator evil!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public WriterBackedGenerator write(String text) | |
| { | |
| text = ((text == null) ? "" : text); | |
| if (_scripting || _noEscape) // *djg* horrors!! | |
| { | |
| writeToBuffer(text); | |
| } | |
| else if (text.equals(" ")) | |
| { | |
| writeToBuffer(" "); | |
| } | |
| else | |
| { | |
| writeToBuffer(StringUtils.escapeForXMLAttribute(text)); | |
| } | |
| return this; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment