Skip to content

Instantly share code, notes, and snippets.

@SmellyFish
Created November 14, 2013 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SmellyFish/7475558 to your computer and use it in GitHub Desktop.
Save SmellyFish/7475558 to your computer and use it in GitHub Desktop.
This code will replace an actual registered sign symbol (R in a circle) with "®".
$name = str_replace(html_entity_decode('®', null, 'UTF-8'), '®', $name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment