code: function meth_Conv_Str(&$Txt,$ConvBr=true) {
  	if ($this->Charset==='') { // Html by default
  		$Txt = htmlspecialchars($Txt);
  		if ($ConvBr) $Txt = nl2br($Txt);
  	} elseif ($this->_CharsetFct) {
  		$Txt = call_user_func($this->Charset,$Txt,$ConvBr);
  	} else {
  		$Txt = htmlspecialchars($Txt,ENT_COMPAT,$this->Charset);
  		if ($ConvBr) $Txt = nl2br($Txt);
  	}
  }
docs: Convert a string with charset or custom function