A giant one: you have to avoid getting any user input inside that.
Eg, if user could provide content of the variable, he could just provide
<script> /* arbitrary JS */ </script>
and do whatever he wanted every time that gets rendered.
Of course, if you prevent user providing input to this variable, it should not be issue. (But of course, think long and hard why you want to do that)
m
Martin Gaens
04/26/2022, 9:39 AM
Yeah, understandable. Thank you. What are my other options?
Martin Gaens
04/26/2022, 9:39 AM
If I want to mix kotlinx.html with let's say Thymeleaf.