Open Vodhin opened 3 weeks ago
I think you are doing something wrong. This was never an issue before. Weird.
I think you are doing something wrong. This was never an issue before. Weird.
I noticed it when testing different Themes. The current ->toText()
works with Bootstrap 3 and Voux but does not work with Bootstrap 5 themes. Changing this to ->toHTML()
makes it work with no issues.
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 toe107::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