1. How do I remove the space before each new paragraph? Or just a sentence?
2. Then I would suggest that the search array and the replace array should be next to each other, then it will be quicker to see what is going where.
Maybe even have an array with keys and values, then we could go:
$text = preg_replace(array_keys($this->replace), array_values($this->replace), $text);
That could be easier to read.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.