blob: adc5fcb2650163db11c69e38b996611a24261468 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <AK/String.h>
#include <LibHTML/DOM/Node.h>
class Text final : public Node {
public:
explicit Text(Document&, const String&);
virtual ~Text() override;
const String& data() const { return m_data; }
virtual String tag_name() const override { return "#text"; }
virtual String text_content() const override { return m_data; }
private:
String m_data;
};
|