Opened 9 years ago

Closed 7 years ago

#1220 closed enhancement (fixed)

[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 (1)

xinha_superclean_args.diff (1.4 KB) - added by guest 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by guest

comment:1 Changed 9 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.

comment:2 Changed 8 years ago by douglas

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

comment:3 Changed 8 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.

comment:4 Changed 7 years ago by gogo

changeset:1199 commits this patch

comment:5 Changed 7 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.