1 2 3 4 5 6 7 8 9 10 11 12
package model.html; /** * This TextNode class represents raw text, with no nested tags. */ public record TextNode(String text) implements Node { // We implement this method for easy debugging. public String data() { return text(); } }