Fix hr (in addition to br) in comment
This commit is contained in:
parent
a70c44bdc1
commit
2d430bd011
2
book.php
2
book.php
|
@ -146,7 +146,7 @@ class Book extends Base {
|
||||||
}
|
}
|
||||||
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
|
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
|
||||||
{
|
{
|
||||||
return $addition . str_replace ("<br>", "<br />", $this->comment);
|
return $addition . preg_replace ("<(br|hr)>", "$1 /", $this->comment);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue