Hi,
xml.text(t) is safer than directly accessing t.dt[1].
Note: you may need to strip some XML tags from that content.
If the element is not straight-up data but has nested elements, then this will
return the full xml representation instead:
A short title=> ‘A short title'
Ok, I've found a way, see below.
But maybe someone has some nice lua (or other) tricks to share... (I'm not sure
accessing t.dt[1] is particularly safe when operating on nested structures.)
Best,
Denis
\startbuffer[test]
A short title
asdf asdf asdf jklö jklö jklö
A longer