<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
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!