MCPcopy Index your code
hub / github.com/processing/processing / writeEntryHTML

Method writeEntryHTML

core/src/processing/data/Table.java:1384–1407  ·  view source on GitHub ↗
(PrintWriter writer, String entry)

Source from the content-addressed store, hash-verified

1382
1383
1384 protected void writeEntryHTML(PrintWriter writer, String entry) {
1385 //char[] chars = entry.toCharArray();
1386 for (char c : entry.toCharArray()) { //chars) {
1387 if (c == '<') {
1388 writer.print("&lt;");
1389 } else if (c == '>') {
1390 writer.print("&gt;");
1391 } else if (c == '&') {
1392 writer.print("&amp;");
1393// } else if (c == '\'') { // only in XML
1394// writer.print("&apos;");
1395 } else if (c == '"') {
1396 writer.print("&quot;");
1397
1398 } else if (c < 32 || c > 127) { // keep in ASCII or Tidy complains
1399 writer.print("&#");
1400 writer.print((int) c);
1401 writer.print(';');
1402
1403 } else {
1404 writer.print(c);
1405 }
1406 }
1407 }
1408
1409
1410 protected void saveODS(OutputStream os) throws IOException {

Callers 1

writeHTMLMethod · 0.95

Calls 1

printMethod · 0.65

Tested by

no test coverage detected