summaryrefslogtreecommitdiff
path: root/src/html.hpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-25 14:10:45 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-25 14:10:45 +0300
commit1de3a9aae84ec71c4fd83604ea9c45204efb9baf (patch)
tree99246ae8cbb19864657360b513f501d796a92db5 /src/html.hpp
parent2c12c0652d2b8c8440e1e908f004826840ed14ab (diff)
downloadtexo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.tar
texo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.tar.xz
texo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.zip
.
Diffstat (limited to 'src/html.hpp')
-rw-r--r--src/html.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/html.hpp b/src/html.hpp
index dc291f6..fcf64e6 100644
--- a/src/html.hpp
+++ b/src/html.hpp
@@ -35,6 +35,29 @@ public:
TexoImporterHTML(TexoProducer &producer);
void Put(char c);
+ void Put(const ScriptVariable &str);
+ void Put(FILE *file);
+
+private:
+ enum State {
+ text, // TODO: decoding ("&gt;" -> ">")
+ open,
+ tag_name,
+ tag_skip,
+ attr_pre,
+ attr_name,
+ attr_name_post,
+ attr_value_pre,
+ attr_value
+ } state;
+ bool closing;
+ ScriptVariable tag;
+ ScriptVariable attr;
+ ScriptVariable attr_src;
+ ScriptVariable attr_href;
+ ScriptVariable attr_title;
+ ScriptVariable attr_alt;
+ ScriptVariable link_text;
};