explode at new linebreak } instead of <br> or etc.

This commit is contained in:
Hash Borgir 2023-06-14 13:57:11 -06:00
parent 4f6322e866
commit 8aea5b9371

View File

@ -1058,7 +1058,7 @@ EOT;
$p = "/ÿc[\d:;\/.]/i";
$data['name'] = preg_replace($p, "", $data['name']);
}
$name = array_reverse(explode('\n', $data['name']));
$name = array_reverse(explode('}', $data['name']));
$data['name'] = (implode('<br>', $name));
// later display these in a li
@ -1132,7 +1132,7 @@ EOT;
$p = "/ÿc[\d:;\/.]/i";
$data['spelldesc'] = preg_replace($p, "", $data['spelldesc']);
$spelldesc = array_reverse(explode('\n', $data['spelldesc']));
$spelldesc = array_reverse(explode('}', $data['spelldesc']));
$data['spelldesc'] = (implode('<br>', $spelldesc));
}