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

SetContent not whitelisting html comments #278

Closed
anuradhaindika83 opened this issue Mar 21, 2020 · 1 comment
Closed

SetContent not whitelisting html comments #278

anuradhaindika83 opened this issue Mar 21, 2020 · 1 comment
Labels
Milestone

Comments

@anuradhaindika83
Copy link

Hi,

At the page load, I get the HTML data from the DB to a javascript variable and that variable is being passed to the SetContent() method. In this case, the HTML comments are not getting whitelisted.

Eg.

suneditor.setContents('<!-- html comment -->');

here the "html comment" is added as a plain text to the body.

Thanks
Anuradha

@JiHong88 JiHong88 added the bug label Mar 21, 2020
@JiHong88 JiHong88 added this to the 2.28.0 milestone Mar 21, 2020
JiHong88 added a commit that referenced this issue Mar 21, 2020
fix: #277 #278 add HTML comments to the whitelist
@JiHong88
Copy link
Owner

The 2.28.0 version has been updated.
If there is an issue, please register as a new issue.
Thank you.

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