(String tx)
| 285 | } |
| 286 | |
| 287 | private String parseScriptText(String tx) { |
| 288 | CharArrayWriter cw = new CharArrayWriter(); |
| 289 | int size = tx.length(); |
| 290 | int i = 0; |
| 291 | while (i < size) { |
| 292 | char ch = tx.charAt(i); |
| 293 | if (i + 2 < size && ch == '%' && tx.charAt(i + 1) == '\\' && tx.charAt(i + 2) == '>') { |
| 294 | cw.write('%'); |
| 295 | cw.write('>'); |
| 296 | i += 3; |
| 297 | } else { |
| 298 | cw.write(ch); |
| 299 | ++i; |
| 300 | } |
| 301 | } |
| 302 | cw.close(); |
| 303 | return cw.toString(); |
| 304 | } |
| 305 | |
| 306 | /* |
| 307 | * Invokes parserController to parse the included page |
no test coverage detected