p4ulypops / jquery-clean

Automatically exported from code.google.com/p/jquery-clean
0 stars 0 forks source link

Is it possible to specify in the options to not render content which is not in the whitelist? #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have some tags which I want to remove -- not just the tags, but the content 
in them. Is there a configuration parameter that will allow me to remove the 
tag and the content inside it?

Original issue reported on code.google.com by n...@cgpartnersllc.com on 19 Jul 2013 at 12:36

GoogleCodeExporter commented 9 years ago
Hello Nina

I have added a second black list which will remove the tag and its contents
e.g.

    $.htmlClean(input,{
       removeTagsAndContent: ["div","span"]
    });

this will remove all "div" and "span" elements including their content

https://jquery-clean.googlecode.com/svn/trunk/jquery.htmlClean.js

Please have a look and let me know
Ant

Original comment by antixsof...@gmail.com on 22 Jul 2013 at 8:53