mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 02:18:11 +00:00
LibHTML: Start working on a simple HTML library.
I'd like to have rich text, and we might as well use HTML for that. :^)
This commit is contained in:
parent
01d1aee922
commit
a67e823838
19 changed files with 329 additions and 0 deletions
15
LibHTML/Text.h
Normal file
15
LibHTML/Text.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <LibHTML/Node.h>
|
||||
|
||||
class Text final : public Node {
|
||||
public:
|
||||
explicit Text(const String&);
|
||||
virtual ~Text() override;
|
||||
|
||||
const String& data() const { return m_data; }
|
||||
|
||||
private:
|
||||
String m_data;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue