wraps the element into the following format @return <elementText>elementValue</elementText>
(String elementText, String elementValue)
| 295 | * @return <elementText>elementValue</elementText> |
| 296 | */ |
| 297 | public static String wrap(String elementText, String elementValue) { |
| 298 | if(elementValue == null) { |
| 299 | return "<" + elementText + "> </" + elementText + ">\n"; |
| 300 | } |
| 301 | return "<" + elementText + ">" + replaceAmpChars(elementValue) + "</" |
| 302 | + elementText + ">\n"; |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * wraps the element into the following format |