This module leverages simplehtmldom API and provides a simple, powerful interface for a general html text format filter.
This filter bypasses some of the issues set out in WYSIWYG Filter to create a simple restriction process not tied to regular expressions across HTML.
Configuration has 3 input fields:
- Valid HTML elements
Example:"p,a,div,span,h2,h3,h4,section,article,strong,b,i,em,cite,blockquote,small,sub,sup,code,ul,ol,li,dl,dt,dd,table,tbody,th,tr,td,img,caption,br,hr" - Valid element attributes
Example: "src,href,target,width,height,colspan,span,alt,name,title,class,id" - Valid Style properties
Example: "text-align,float,margin"
Any element, property, style not defined in the interface will be stripped out.
Requires:
Similar modules:
Known Issues
- If you have xdebug enabled, and your nesting function setting (xdebug.max_nesting_level) is set low, you may receive errors as this module uses a recursive dive in simplehtmldom to run through the HTML.
- If styles are being stripped out despite proper configuration, please see https://www.drupal.org/node/2661152, as it may be related to PHP version / OS.
Supporting organizations:
conception and developement
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Content editing experience
115 sites report using this module
- Created by jlyon on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
