protected function normalize()
	{
		// Decode all entities to their simpler forms
		$this->container['filename'] = html_entity_decode($this->container['filename'], ENT_QUOTES, 'UTF-8');

		// Remove all quotes
		$this->container['filename'] = preg_replace("#[\"\']#", '', $this->container['filename']);

		// Strip unwanted characters
		$this->container['filename'] = preg_replace("#[^a-z0-9]#i", $this->config['normalize_separator'], $this->container['filename']);
		$this->container['filename'] = preg_replace("#[/_|+ -]+#u", $this->config['normalize_separator'], $this->container['filename']);
		$this->container['filename'] = trim($this->container['filename'], $this->config['normalize_separator']);
	}
protected function normalize()
	{
		// Decode all entities to their simpler forms
		$this->container['filename'] = html_entity_decode($this->container['filename'], ENT_QUOTES, 'UTF-8');

		// Remove all quotes
		$this->container['filename'] = preg_replace("#[\"\']#", '', $this->container['filename']);

		// Strip unwanted characters
		$this->container['filename'] = preg_replace("#[^a-z0-9]#i", $this->config['normalize_separator'], $this->container['filename']);
		$this->container['filename'] = preg_replace("#[/_|+ -]+#u", $this->config['normalize_separator'], $this->container['filename']);
		$this->container['filename'] = trim($this->container['filename'], $this->config['normalize_separator']);
	}
protected function normalize ( ) { // Decode all entities to their simpler forms $ this -> container [ 'filename' ] = html_entity_decode ( $ this -> container [ 'filename' ] , ENT_QUOTES , 'UTF-8' ) ; // Remove all quotes $ this -> container [ 'filename' ] = preg_replace ( "#[\"\']#" , '' , $ this -> container [ 'filename' ] ) ; // Strip unwanted characters $ this -> container [ 'filename' ] = preg_replace ( "#[^a-z0-9]#i" , $ this -> config [ 'normalize_separator' ] , $ this -> container [ 'filename' ] ) ; $ this -> container [ 'filename' ] = preg_replace ( "#[/_|+ -]+#u" , $ this -> config [ 'normalize_separator' ] , $ this -> container [ 'filename' ] ) ; $ this -> container [ 'filename' ] = trim ( $ this -> container [ 'filename' ] , $ this -> config [ 'normalize_separator' ] ) ; }
Converts a filename into a normalized name. only outputs 7 bit ASCII characters.
Converts a filename into a normalized name . only outputs 7 bit ASCII characters .