Skip to content

UI: move escaping in charts from consumers to renderer (46966)#11119

Open
schmitz-ilias wants to merge 1 commit intoILIAS-eLearning:release_10from
schmitz-ilias:bt-46966
Open

UI: move escaping in charts from consumers to renderer (46966)#11119
schmitz-ilias wants to merge 1 commit intoILIAS-eLearning:release_10from
schmitz-ilias:bt-46966

Conversation

@schmitz-ilias
Copy link
Contributor

This PR fixes 46966 by escaping the content of KS charts directly before rendering it, instead of leaving it to consumers to escape the data themselves. This is necessary, because the same data is used for two different purposes, with two different requirements for escaping: once to a screen-reader-only listing rendered as HTML, and once passed as JSON to chart.js.

Let me know if you want anything done differently!

@schmitz-ilias schmitz-ilias added bugfix kitchen sink php Pull requests that update Php code labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants