mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
XHTML formatting <hr> (fixes #8297)
This commit is contained in:
parent
fade5cce51
commit
2419d1aa46
@ -144,6 +144,7 @@ class ContentNegotiator {
|
|||||||
|
|
||||||
$content = str_replace(' ',' ', $content);
|
$content = str_replace(' ',' ', $content);
|
||||||
$content = str_replace('<br>','<br />', $content);
|
$content = str_replace('<br>','<br />', $content);
|
||||||
|
$content = str_replace('<hr>','<hr />', $content);
|
||||||
$content = preg_replace('#(<img[^>]*[^/>])>#i', '\\1/>', $content);
|
$content = preg_replace('#(<img[^>]*[^/>])>#i', '\\1/>', $content);
|
||||||
|
|
||||||
$response->setBody($content);
|
$response->setBody($content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user