Brettflan
Active member
I'm working on an addon which needs to insert raw HTML into a template, which is output by a custom function I've added. I have made a template modification to insert it using the format "{$user.getCustomData()}" (the function is added using a Class extension), but the function output is being automatically HTML-sanitized so that "<" is encoded to "<", and so forth. I need to have it not sanitize this output.
After looking into it a bit, I found references to using "{xen:raw $variable}" to keep the text from being sanitized, but this seems to be for XenForo 1 and not supported in XF 2.0. Is there some other equivalent method to keep variable data from being sanitized within a template in XF 2.0?
After looking into it a bit, I found references to using "{xen:raw $variable}" to keep the text from being sanitized, but this seems to be for XenForo 1 and not supported in XF 2.0. Is there some other equivalent method to keep variable data from being sanitized within a template in XF 2.0?
Last edited: