Mailinglisten-Archive | 
Hallo,
warum kommt man eigentlich oft fast sofort auf die Lösung, sobald man
eine Frage in eine Liste gestellt hat?
Hier meine Lösung (in $locText ist der String):
------------------------------------------------------------------------
  preg_match_all("^\{.*\}^Ui", $locText, $locFound, PREG_SET_ORDER);
  $locText = htmlspecialchars($locText);
  if (is_array($locFound) && count($locFound) > 0)
  {
    foreach($locFound as $locVals)
    {
       $locText = str_replace(htmlspecialchars($locVals[0]),
                              $locVals[0],
                              $locText);
    }
  }
------------------------------------------------------------------------
Ist zwar etwas umständlich, aber funktioniert. Sollte jemand einen
besseren Ansatz haben, ich bin für alles offen. :-)
Gruss,
Ralf
    php::bar PHP Wiki - Listenarchive