1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you pass AJAX text with HTML in it?

Discussion in 'XenForo Development Discussions' started by Jaxel, Feb 28, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    I am using the following:
    Code:
    return $this->responseRedirect(
    	XenForo_ControllerResponse_Redirect::SUCCESS,
    	XenForo_Link::buildPublicLink('threads', $thread),
    	null,
    	array('linkPhrase' => '<span>'.($input['delete'] ? new XenForo_Phrase('promote_thread') : new XenForo_Phrase('promote_options')).'</span>')
    );
    It works well, except that <span> gets changed to escaped so its not read as HTML. Is there a way to bypass this escaping, similar to how {xen:raw} works?
     

Share This Page