S
Solara2w ago
pnjun

<script> tag in HTML component

I am trying to add a <script> tag via the solara.HTML component. Even if the script is present in the DOM, it is not executeed. I found out that <script> tags that are added via JS innerHTML to the DOM are not executed to prevent XSS attacks. Is there another way for a solara app to add custom JS to a component? Thanks!
1 Reply
iisakkirotko
iisakkirotko2w ago
Hi @pnjun! I think component_vue is the most convenient way of adding custom javascript. Let me know if it doesn't work / you need some pointer!

Did you find this page helpful?