aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/html/TextNode.java
blob: cebf8542416e86ee4bbaf8d0881684eaca7102df (plain) (blame)
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();
    }
}