summaryrefslogtreecommitdiff
path: root/example/filter_html.cpp
blob: a1957c3535e268a4f7f77019439b97cd7ce1a9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <html.hpp>
#include <file.hpp>

int main()
{
    TexoFileExporter exporter(stdout);
    TexoHTMLProducer producer(exporter);
    TexoHTMLImporter importer(producer);
    importer.PutStr(
        "<script>EVIL MAGIC</script></p>\n"
        "<a href='#'>Some</a> br:<br/>\n"
        "<p class='evil_too'>And paragraphs work well too...</p>\n"
        "<b>You</b> <i>can</i> <del>use</del> <ins>some</ins> <p>witchcraft.\n"
    );
    return 0;
}