final public function unhighlightString(
		$contents           = '',
		$update_file        = false,
		array $replacements = array('<br />' => PHP_EOL, '<br>' => PHP_EOL, '&nbsp;' => ' ')
	)
	{
		$contents = str_replace(array_keys($replacements), array_values($replacements), $contents);
		$contents = strip_tags($contents);
		$contents = html_entity_decode($contents);
		$contents = trim($contents) . PHP_EOL;
		if ($update_file === true) {
			$this->filePutContents("$contents", null);
		}
		return $contents;
	}
final public function unhighlightString(
		$contents           = '',
		$update_file        = false,
		array $replacements = array('<br />' => PHP_EOL, '<br>' => PHP_EOL, '&nbsp;' => ' ')
	)
	{
		$contents = str_replace(array_keys($replacements), array_values($replacements), $contents);
		$contents = strip_tags($contents);
		$contents = html_entity_decode($contents);
		$contents = trim($contents) . PHP_EOL;
		if ($update_file === true) {
			$this->filePutContents("$contents", null);
		}
		return $contents;
	}
final public function unhighlightString ( $ contents = '' , $ update_file = false , array $ replacements = array ( '<br />' => PHP_EOL , '<br>' => PHP_EOL , '&nbsp;' => ' ' ) ) { $ contents = str_replace ( array_keys ( $ replacements ) , array_values ( $ replacements ) , $ contents ) ; $ contents = strip_tags ( $ contents ) ; $ contents = html_entity_decode ( $ contents ) ; $ contents = trim ( $ contents ) . PHP_EOL ; if ( $ update_file === true ) { $ this -> filePutContents ( "$contents" , null ) ; } return $ contents ; }
Inverse of highlight function. Attempts to convert HTML to regular string

@param  string $contents     HTML encoded, syntax-highlighted string
@param  bool   $update_file  Whether or not to update file's content
@param  array  $replacements Associative array of things to replace
@return string           Non-HTML version of string
Inverse of highlight function . Attempts to convert HTML to regular string