Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

DangerouslySetInnerHTML script not working #23

@rajeevmaster

Description

@rajeevmaster

below script does not work, seems outdated. From file: dash-recipes/dash-script-execution-dangerously-set-inner-html.py

import dash_dangerously_set_inner_html
import dash
import dash_html_components as html

app = dash.Dash('')

app.scripts.config.serve_locally = True

app.layout = html.Div([
dash_dangerously_set_inner_html.DangerouslySetInnerHTML('''
<script type="text/javascript">alert('test')</script>
'''),
])

if name == 'main':
app.run_server(debug=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions