e107 icon indicating copy to clipboard operation
e107 copied to clipboard

[Feature request]: Table Captions with HTML please

Open Vodhin opened this issue 8 months ago • 2 comments

Motivation

I would like to use html tags in the Caption of table render so I can add icons or other interface elements to front end pages. It seems that tablerender strips them out via e107::getParser()->toText($caption) - and this is odd - for some themes and not others. When I change it to e107::getParser()->toHTML($caption) then all works ok.

Proposed Solution

In e_render_class.php: Change 401: $options['caption'] = e107::getParser()->toText($caption); to: 401: $options['caption'] = e107::getParser()->toHTML($caption);

Alternatives

No Alternative exists.

Additional Context

No response

Vodhin avatar Jun 05 '24 15:06 Vodhin