protected function isSafe($context)
	{
		// Test this attribute's filters
		$methodName = 'isSafe' . $context;
		foreach ($this->filterChain as $filter)
		{
			if ($filter->$methodName())
			{
				// If any filter makes it safe, we consider it safe
				return true;
			}
		}

		return !empty($this->markedSafe[$context]);
	}
protected function isSafe($context)
	{
		// Test this attribute's filters
		$methodName = 'isSafe' . $context;
		foreach ($this->filterChain as $filter)
		{
			if ($filter->$methodName())
			{
				// If any filter makes it safe, we consider it safe
				return true;
			}
		}

		return !empty($this->markedSafe[$context]);
	}
protected function isSafe ( $ context ) { // Test this attribute's filters $ methodName = 'isSafe' . $ context ; foreach ( $ this -> filterChain as $ filter ) { if ( $ filter -> $ methodName ( ) ) { // If any filter makes it safe, we consider it safe return true ; } } return ! empty ( $ this -> markedSafe [ $ context ] ) ; }
Return whether this attribute is safe to be used in given context

@param  string $context Either 'AsURL', 'InCSS' or 'InJS'
@return bool
Return whether this attribute is safe to be used in given context