summaryrefslogtreecommitdiff
path: root/example/filter_html.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/filter_html.cpp')
-rw-r--r--example/filter_html.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/example/filter_html.cpp b/example/filter_html.cpp
new file mode 100644
index 0000000..ced8f5f
--- /dev/null
+++ b/example/filter_html.cpp
@@ -0,0 +1,18 @@
+#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>\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> witchcraft.\n"
+ );
+ return 0;
+ return 0;
+}