Skip to content

Instantly share code, notes, and snippets.

@danielnv18
Created June 18, 2014 14:19
Show Gist options
  • Save danielnv18/103a7e3d6624f33d4020 to your computer and use it in GitHub Desktop.
Save danielnv18/103a7e3d6624f33d4020 to your computer and use it in GitHub Desktop.
This also wipes newline . This will come handy if you are trying to printing javascript code within php
<?php
preg_replace('/\p{C}+/u', '', $topic_obj->description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment