Created
July 4, 2017 11:43
-
-
Save LiangWei88/a48fcdaf5b047f0ca19b562e2fab3f51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function replaceNbspWithSpace($content){ | |
| $string = htmlentities($content, null, 'utf-8'); | |
| $content = str_replace(" ", " ", $string); | |
| $content = html_entity_decode($content); | |
| return $content; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this really helps. thanks