Parser für in bodytext-Feldern
$splitContent = preg_split('|(]*>[^<]+)|', $content, -1, PREG_SPLIT_DELIM_CAPTURE);
$content = '';
foreach ($splitContent as $part) {
if (substr($part, 0, 5) === '[^\s>]+)(?:\s(?P[^\s>]+))?(?:\s(?P[^\s>]+))?(?:\s"(?P[^">]+)")?>(?P[^<]*)|xui', $part, $matches);
if ($matches !== array()) {
$content .= '';
} else {
$content .= $part;
}
} else {
$content .= $part;
}
}