1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 21:45:08 +00:00
serenity/LibHTML/test.cpp
Andreas Kling a67e823838 LibHTML: Start working on a simple HTML library.
I'd like to have rich text, and we might as well use HTML for that. :^)
2019-06-15 18:55:47 +02:00

10 lines
266 B
C++

#include <LibHTML/Dump.h>
#include <LibHTML/Element.h>
#include <LibHTML/Parser.h>
int main()
{
String html = "<html><head><title>my page</title></head><body><h1>Hi there</h1><p>Hello World!</p></body></html>";
auto doc = parse(html);
dump_tree(doc);
}