Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7491611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:05:15+00:00 2026-05-29T16:05:15+00:00

I am looking for a WYSIWYG that will allow me to specify a whitelist

  • 0

I am looking for a WYSIWYG that will allow me to specify a whitelist of HTML tags that are allowed in the textarea and renders them, whilst discarding anything else. This validation would need to run if the user copies and pastes content in or editing the HTML manually.

Sort of like HTML Purifier but in a Javascript WYSIWYG.

I have played around with CKEditor’s dataProcessor.dataFilter setting but that would need to list every tag to EXCLUDE so its a blacklist rather than a whitelist.

Any ideas?

Edit…

Please don’t simply suggest use {xyz} editor. I am looking for suggestions with code samples showing how to use the suggested editor in this manner.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:05:16+00:00Added an answer on May 29, 2026 at 4:05 pm

    Using tinyMCE you can have a list of valid elements, invalid elements, and extended valid elements

    You can see the code for these and play with the configuration options on tinyMCE’s website by looking at examples

    When the form is submitted or the remove formatting button is pressed (as in this example) the validation is ran and pulls out all the non-valid formatting.

    You must be careful for this does not ensure that a malicious user will not directly send you non-valid html and try to cause a XSS attack. This means you still need validation on the server side if you intend to serve the html up to users again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for wysiwyg designer that creates applications in html 5 (based on
I am looking for a list of WYSIWYG editors that use contentEditable rather than
Here is what I'm looking to do. 1: Have a jQuery WYSIWYG editor that
Hi I am looking for a simple html editor (not anything like wysiwyg), a
I've never used Dreamweaver before, but I have some HTML that I am looking
I'm looking for a PHP function to close HTML tags. I'm building a site
Are there any iPad compatible wysiwyg HTML editors? Edit: What I'm looking for is
I am looking for a WYSIWYG editor that matches a few requirements. ability to
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main
I've been looking into some of the WYSIWYG editors (TinyMCE, FCKEditor, etc.) and they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.