Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function format($text)
- {
- $text = htmlentities($text, ENT_COMPAT, utf-8);
- $text = preg_replace('/â../', '"', $text);
- $text = preg_replace('/"s/', ''s', $text);
- $text = preg_replace('/([^,][\.|"|!])\r\n([A-Z|"])/m', '$1</p><p>$2', $text);
- return $text;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement