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

Update main.js #2987

Merged
merged 2 commits into from
Aug 27, 2017
Merged

Update main.js #2987

merged 2 commits into from
Aug 27, 2017

Conversation

VincentGau
Copy link
Contributor

Fix the cleanInput() function to prevent input from having injected markup.

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

the function returns exactly the same input.

New behaviour

prvents injected markup

Other information (e.g. related issues)

Fix the cleanInput() function to prevent input from having injected markup.
@j-f1
Copy link

j-f1 commented Jun 23, 2017

I think you want .text(input).html().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants