CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #7718

remove individual attributes from HTML-content

Added by Stephan Kellermayr about 3 years ago. Updated over 2 years ago.

Status:Closed Start date:2010-05-09
Priority:Could have Due date:
Assignee:Olivier Schopfer % Done:

100%

Category:-
Target version:-
Votes: 0

Description

it would be great, if there were the possibility to remove individual attributes from HTML-content, because if CSS-styles are integrated into style-attributes, there is no need for IDs or CLASSes anymore (in some cases).

simple add this into your typoscript:

10 = USER
10.userFunc = tx_css2inline_pi1->main
10.removeAttributes = class,id

...and use the patch attached here.

this will remove all attributes listed in "removeAttributes"

best regards, Stephan

class.tx_css2inline_pi1.php.diff2 (920 Bytes) Stephan Kellermayr, 2010-05-09 11:47

History

Updated by Olivier Schopfer about 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Many thanks to Stephan Kellermayr for his excellent proposal.

It's applied and a new version is on the TER.

Best regards.

Olivier

Also available in: Atom PDF