[MOD] Mess a bit with rich replies, add XEPS-TBD

This should be a nice list of future XEPs to be implemented, so that I
can keep track of these without having to keep all of these in my head.
This commit is contained in:
LDA 2024-06-25 22:49:33 +02:00
commit 628a55fbca
6 changed files with 127 additions and 18 deletions

View file

@ -6,7 +6,7 @@
#include <string.h>
XMLElement *
XMLDecode(Stream *stream, bool autofree)
XMLCDecode(Stream *stream, bool autofree, bool html)
{
#define push(x) ArrayAdd(stack, x)
#define pop(x) ArrayDelete(stack, ArraySize(stack) - 1)
@ -45,7 +45,12 @@ XMLDecode(Stream *stream, bool autofree)
* going to be our top of the stack */
ret = top;
}
push(top);
/* HACK!!! */
if (!StrEquals(event->element, "br") || !html)
{
push(top);
}
break;
case XML_LEXER_ELEM:
/* Create a new element that will populated. */