XF 2.2 htmlspecialchars_decode in template

requo

Active member
Hello,

I'm solving a problem and I have no idea how to solve it. Nice please for advice.

I have an external system that generates html code with unique user features of one game (several graphic badges, colored numbers, etc.). I need to put it at the end of each signature. I solved it by having a user field, which I fill in the DB and then update the user cache. In the "message_macros" template, I then call and print the value.

The problem is that the value from the user field is handled by htmlspecialchars. And I can't find a way to decode it (htmlspecialchars_decode).
I didn't find it among the filters and if I try to call php callback, it gives me a message

"The callback method myDecodeSignature does not appear to indicate a read only function so cannot be called."

Can you please advise me, or direct me on how best to solve it? It occurs to me that I am overlooking something trivial. :(
 
Top Bottom