mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG BBCodeParser wasnt working due to php4 lack of statics
This commit is contained in:
parent
3483d10369
commit
c7eb4f3138
@ -144,7 +144,11 @@ class BBCodeParser extends TextParser {
|
||||
*/
|
||||
function parse() {
|
||||
$this->content = str_replace(array('&', '<', '>'), array('&', '<', '>'), $this->content);
|
||||
$this->content = SSHTMLBBCodeParser::staticQparse($this->content);
|
||||
|
||||
$p = new SSHTMLBBCodeParser();
|
||||
$this->content = $p->qparse($this->content);
|
||||
unset($p);
|
||||
|
||||
$this->content = "<p>".$this->content."</p>";
|
||||
|
||||
$this->content = preg_replace('/(<p[^>]*>)\s+/i', '\\1', $this->content);
|
||||
|
Loading…
Reference in New Issue
Block a user