In tiddlyclip for firefox, using the @web allow html to be clipped and it is sanatized. However with firefox 57 I don't think there is an api for the sanztier, so I am planning on added a lib to do the sanitizing.
On Thursday, November 2, 2017 at 3:48:25 PM UTC+1, Mark S. wrote: > > You can also use use BJ's tiddlyclip with HTML to markup adapter. This > uses regexp to remove almost everything that is irrelevant to TW renders. > > I guess it depends on whether the objective is to make more compact text > or simply safer text. > > Mark > > On Thursday, November 2, 2017 at 7:20:32 AM UTC-7, @TiddlyTweeter wrote: >> >> You might want to look at BJ's Flexity plugin. This will let you use >> regular expressions to clean code. You'd need to display output as plain >> text and then copy and paste back to a new tiddler though as its NOT an >> import mechanism. But, as its name suggests, it has great flex as a general >> tool to change a Tiddler anyway you want. >> >> http://flexibility.tiddlyspot.com/ >> >> Best wishes >> Josiah >> >> On Thursday, 2 November 2017 13:26:51 UTC+1, Paul Netsaver wrote: >>> >>> Hi, >>> I'm currently using TW for importing web pages, snippets, etc (but I'ld >>> like using it also as a CMS). >>> I'm searching a plugin for reducing and cleaning the original HTML >>> source code, something customizable, similar for instance to sanitizer.js. >>> Basically I need to: >>> - exclude all style attributes (except perhaps img size attributes) >>> - exclude all empty divs >>> - filter tags, attributes, classes based on whitelist / blacklist >>> Maybe something acting all over the tiddler content and >>> activated/deactivated by a proper toolbar button. >>> Does a similar plugin for TW exist? >>> It is possible to create it by using an available js library? >>> Thanks and regards >>> Paul Netsaver >>> Rome (IT) >>> >>> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9e5b5e51-f432-4ac9-803e-4c6516089f6a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

