Gets the script held within the script tag.
()
| 220 | * Gets the script held within the script tag. |
| 221 | */ |
| 222 | private String getScriptCode() { |
| 223 | final Iterable<DomNode> textNodes = getChildren(); |
| 224 | final StringBuilder scriptCode = new StringBuilder(); |
| 225 | for (final DomNode node : textNodes) { |
| 226 | if (node instanceof DomText domText) { |
| 227 | scriptCode.append(domText.getData()); |
| 228 | } |
| 229 | } |
| 230 | return scriptCode.toString(); |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Indicates if a node without children should be written in expanded form as XML |
no test coverage detected