EllisLab/CodeIgniter — pull request #1750 by vlakoff (2012-08-31 02:38:19+00:00)
Title: Simplification in Text Helper's character_limiter()

Because the "\s" regex character class includes \r and \n,
there is no need for the str_replace() part