mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
explode at new linebreak } instead of <br> or etc.
This commit is contained in:
parent
4f6322e866
commit
8aea5b9371
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user