Skip to content
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

Pb with cleanHTML.safeJavaScriptLink option #862

Closed
s-renier-taonix-fr opened this issue Jul 6, 2022 · 0 comments
Closed

Pb with cleanHTML.safeJavaScriptLink option #862

s-renier-taonix-fr opened this issue Jul 6, 2022 · 0 comments
Labels

Comments

@s-renier-taonix-fr
Copy link
Contributor

Jodit Version: 3.18.9

Browser: FF
OS: Linux
Is React App: False

Code

const editor = Jodit.make('#editor', {
            cleanHTML: {
              safeJavaScriptLink: false
            }
          });
          editor.value =
            '<p><a href="javascript:console.log(\'yo\');">test</a></p>';

Expected behavior:

<p><a href="javascript:console.log(\'yo\');">test</a></p>

Actual behavior:
It's safe despite the safeJavaScriptLink option

<p><a href="https://javascript:console.log('yo');">test</a></p>
@xdan xdan added the bug label Aug 14, 2022
xdan added a commit that referenced this issue Aug 14, 2022
@xdan xdan closed this as completed Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants