Topic: hook_tag pointing to a class function
Hello. I have htmLawed as part of a class, you can see the pseudo code below:
class parse_output
private congif
private spec
function constructor
setup_htmlawed()
end function
function setup_htmlawed
include htmlawed class
end function
function my_custom_hook
// Logic here stripping out a few CSS nasties
end function
function parse (input)
return htmlawed(input, this->config, this->spec)
end function
end class
However, the custom hook I have defined in the config is never run - would I do something similar to how PHP natively handles this: array('this', 'function').
I'm rather stuck and confused. Please help!
Edit: I'm using htmLawed 1.1 (which I have modified slightly and cannot update to 1.2)