ListPages supports a number of placeholders that output a date - %%created_at%%, %%updated_at%%, etc.
I've found that these placeholders don't output plain text as you might expect (and as, so far as I'm aware, all other placeholders do) - rather they output a specialised span.
For example, using the following ListPages module on a page:
[[module ListPages fullname="="]]
%%created_at%%
[[/module]]
outputs the following HTML:
<span class="odate time_1544838373 format_%25e%20%25b%20%25Y%2C%20%25H%3A%25M%7Cagohover" style="cursor: help; display: inline;">15 Dec 2018, 01:46</span>
This makes sense, especially for the agohover feature. But it does limit what ListPages dates can be used for. What I'd like to be able to do is use the date for CSS selections, perhaps to highlight all pages that have been created on a Tuesday using the %A date modifier:
[[module CSS]]
.Tuesday { background-color: orange; }
[[/module]]
[[module ListPages limit="30"]]
[[span class="%%created_at|%A%%"]]%%title_linked%%[[/span]]
[[/module]]
Except that doesn't work at all - the date span is inserted into the class name, breaking it completely:
<span class="<span class=" odate="" time_1546968283="" format_%25a"="">08 Jan 2019 17:24</span>"><a href="/trentv4">Trentv4</a>
Because of this, %%date%% parameters can only be used as plain text - they can't be used as CSS classes, or ListPages arguments, or passed via URL to iframes, or anything else that I can think of.
So here's my question: is there a way that I can force a %%date%% to output just text, not any HTML?
Many thanks!