Skip to content

Diff doesn't render if there are unescaped characters in the config #70

Closed
@notscottsmith

Description

@notscottsmith

NetBox version
v3.7.8

Describe the bug
If the config which is rendered into the JS var jsonDiff has unescaped characters, the django filter "safe" doesn't pick them up.

Fix
Changing it to escapejs seems to fix it for me but I've not done extensive testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions