webdump

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/webdump.git
Log | Files | Refs | README | LICENSE

commit de7e902fa925618e4cfb24b044a18b5db2118b03
parent d43a011c4cd01f75ec9169ce745d6d1e13958729
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 26 Aug 2017 12:45:00 +0200

remove code from block tag, add some TODO

Diffstat:
TODO | 2++
main.c | 4+++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -1 +1,3 @@ +- <code> should not be treated as a block (<pre> does?) + ? xml.c: make sure to always call xmldata handler even if datalen == 0 ? diff --git a/main.c b/main.c @@ -81,7 +81,6 @@ static char *blocktags[] = { "title", "tr", "table", - "code", "blockquote", "div", }; @@ -216,6 +215,9 @@ xmldataentity(XMLParser *p, const char *data, size_t datalen) int n; /* convert basic XML entities */ + /* &nbsp; &copy;, copy table from Links (check license) */ + /* rsquo, hellip, ndash, lsquo */ + /* TODO: add to tscrape too */ /* TODO: support some more HTML entities */ n = xml_entitytostr(data, buf, sizeof(buf)); if (n <= 0)