How to get displayed section/header text in dataviewjs?

Using dataviwejs I’m fetching task as

let taskList = dv.pages(keytag).file.tasks.where(t => t.tags.includes(‘#tag1’) || String(t.section).includes(‘tag1’))

Later, I would need to extract exact tag from the section (or header). However, t.section.text gives me sanitized text - i.e. for a section like “my section #tag1/subtag” i would get “my section tag1 subtag”. This prevents me from extracting the actual tag (#tag1/subtag) on the section.
I also tried .display section/header property but it returns undefined.

How can I get rendered text for a section/header?

How is this a share and showcase post? Isn’t this a pure help request?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.