Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Recommended way to add allowed style classes?

edited November 2015 in Vanilla 2.0 - 2.8

Hi all,

I noticed that since updating to 2.2, the GeSHI syntax highlighter plugin I'm using has broken. Some poking around reveals that the HtmLawed plugin is stripping out all of the class attributes, so I'm just left with a bunch of blank span tags.

To fix it I had to edit class.htmlawed.plugin.php and add a number of allowed classes (geshi_syntax, code, br0, co2, kw2, kw4, kw5, nu0, objc, sy0, probably more, but these are what I found in one render).

Is there a recommended way of doing this, from within the GeSHI plugin itself, that doesn't require this hack approach?

Is there a better way to approach this problem?

Cheers,
Michael

Comments

Sign In or Register to comment.