Ticket #1220 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

[patch] need to pass arguments to the server side SuperClean (HtmlTidy) implementation

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords: superclean htmltidy patch
Cc:

Description

By default Superclean calles tidy.php with the argument 'content'.

My server side (non-php) HtmlTidy implementation needs some more custom argruments. It's possible to set the Script with the configuration parameter 'tidy_handler' but there is no parameter for the arguments.

So I've added a new configuration variable ('tidy_args'), to be able to add custom parameters.

A patch is attached.

Attachments

xinha_superclean_args.diff (1.4 kB) - added by guest 5 years ago.

Change History

Changed 5 years ago by guest

Changed 5 years ago by gogo

  • keywords patch added
  • summary changed from need to pass arguments to the server side SuperClean (HtmlTidy) implementation to [patch] need to pass arguments to the server side SuperClean (HtmlTidy) implementation

Patch looks fine, should be applied.

Changed 4 years ago by douglas

Update #1340 to notify listeners when this patch is applied...

Changed 4 years ago by guest

An example of what could be achieved by this and how would be great. I suggest to use tidy_args to pass the configuration variables to the current tidy.php, so that it both works as an example and is configurable.

Changed 4 years ago by gogo

changeset:1199 commits this patch

Changed 4 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

I've put some info on how one might use this in ticket #1340

Note: See TracTickets for help on using tickets.