Hello,

I am trying to figure out a way to strip out all the tags that are added by pasting from word document (I know the wysiwyg has the "paste from word" option but I am sure not all users behave smart and should be treated as idiots). I tried adding those tags (eg. font-size) to 'deny_attribute'=> in default-->body-->config but it didn't do the trick. Am I in the right direction , all I totally misunderstood the process?

Comments

pianomansam’s picture

charos, deny_attributes applied to attributes of a tag, not the tag itself. Depending on how you have your config, if you are using "*" to show all tags, you can use "-" to remove individual tags. See here in the htmLawed documentation: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/htmLawed_README.htm#s3.3

charos’s picture

Status: Active » Closed (fixed)

Thanks for the clarification !