Fix hr (in addition to br) in comment
This commit is contained in:
parent
a70c44bdc1
commit
2d430bd011
1 changed files with 1 additions and 1 deletions
2
book.php
2
book.php
|
@ -146,7 +146,7 @@ class Book extends Base {
|
|||
}
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue