-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diff doesn't render if there are unescaped characters in the config #70
Comments
Hi @notscottsmith, please, provide an example of the diff, that does not render |
Here's an excerpt of the config which would likely be causing an issue:
The cipher that gets created in the config has backticks in it as well as other characters which aren't being escaped by using "safe". e.g. focusing on the cipher line: That's how the text looks when it's using "safe", which will cause problems straight away. Whereas when using escapejs, the same line looks like this: Which allows it to be rendered in JS without problems. |
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.
The text was updated successfully, but these errors were encountered: