Klar, kann man das. Wir benötigen dazu eine neue Chain.mvf hat geschrieben:@dodger, kann man das dür die standard sonderzeichen erweitern?
Dateiname: include.chain.content.htmlentities.php
Inhalt:
Code: Alles auswählen
<?php
function cecContentHtmlentities ($idartlang, $int2, $int3, $string)
{	
global $cfg, $client, $lang;
  cInclude("classes", "class.lang.php");
  $oLanguage = new Language;
  $oLanguage->loadBy("idlang", $lang);
  $sLangEncoding = $oLanguage->get("encoding");
  
  $pattern = '<([a-zA-Z0-9\.\, "\'_\/\-\+~=;:\(\)?&#%![\]@]+)>';
  preg_match_all ('/' . $pattern . '/', $string, $tagMatches, PREG_SET_ORDER);
  $textMatches = preg_split ('/' . $pattern . '/', $string);
  foreach ($textMatches as $key => $value) {
   $textMatches [$key] = mb_convert_encoding($value, 'HTML-ENTITIES', $sLangEncoding);
  }
  for ($i = 0; $i < count ($textMatches); $i ++) {
   $textMatches [$i] = $textMatches [$i] . $tagMatches [$i] [0];
  }
  return implode ($textMatches); 
}
?>Code: Alles auswählen
cInclude("plugins", "chains/includes/include.chain.content.htmlentities.php");
$_cecRegistry->addChainFunction("Contenido.Content.SaveContentEntry", "cecContentHtmlentities");http://spielwiese.contenido-tutorials.de/test/