Skip to content

Don't strip Script tag elements #797

Closed
@Archmonger

Description

@Archmonger

Current Situation

The client code currently strips script tags and replaces them with div.

For example, this script element wont appear within the browser's DOM.

@component
def my_component():
   return html.script("console.log('hello_world');")

Proposed Actions

Remove this behavior, since we now officially support script within ReactPy. There's no longer any reason to visually hide the script tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag-good-first-issueA well defined and self-contained task.priority-3-lowMay be resolved one any timeline.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions