Ckeditor + Htmlpurifier allow attribute
目錄
Allow the attribute as you want.
I created a page manager in the backstage, and it edit by the ckeditor. Also, I use Htmlpurifier to defense the xss injection. But Htmlpurifier will block the attribute like Bootstrap tabs plugins. So the way I used to allow attribute while using Htmlpurifier.
Here is the document.
For example, I want to purify the html below.
|
|
If you use the simple purifier like this,
|
|
You will get the output below,
|
|
The data-tab-set-title is disabled. So, add the code below and you will get what you want.
|
|
Hope it will help !