As designed Spoiler content when there is no View

Mike

XenForo developer
Staff member
#2
This is intentional as we don't want to leak the content unexpectedly (in a place that might not be able to hide it). You can see that in the code:
Code:
        if (!empty($rendererStates['spoilerTextWithFallback']))
        {
            return '<div>' . $content . '</div>';
        }
        else
        {
            $spoilerText = new XenForo_Phrase('spoiler');
            return '<div><b>' . ($title ? ($spoilerText . ': ' . $title) : $spoilerText) . '</b></div>';
        }
 

Lawrence

Well-known member
#3
This is intentional as we don't want to leak the content unexpectedly (in a place that might not be able to hide it). You can see that in the code:
Code:
        if (!empty($rendererStates['spoilerTextWithFallback']))
        {
            return '<div>' . $content . '</div>';
        }
        else
        {
            $spoilerText = new XenForo_Phrase('spoiler');
            return '<div><b>' . ($title ? ($spoilerText . ': ' . $title) : $spoilerText) . '</b></div>';
        }
Makes sense, thanks Mike.
 
Top