3

I'm facing a issue with the ckeditor in my nodejs code when I input data using ckeditor the data is submitted with the HTML tags in the database(phpmyadmin) from there when I'm trying to fetch the data in the ejs file I have tried the strip tags and sanitizer but nothing worked.

1
  • You should add some of your code, and show us what you have already tried. Also, some grammar improvements and better text formatting would help, because others can read your post better, which, hopefully, results in more answers. Commented Mar 6, 2017 at 14:11

1 Answer 1

3

Have you tried the tag <%- %> instead of <%= %>? <%- escapes HTML by default (therefore your br tag is changed to it's escaped equivalent).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.