Skip to content

Instantly share code, notes, and snippets.

@aalfiann
Created January 10, 2018 03:16
Show Gist options
  • Save aalfiann/3457c99b68c3990d1312959aec682adc to your computer and use it in GitHub Desktop.
Save aalfiann/3457c99b68c3990d1312959aec682adc to your computer and use it in GitHub Desktop.
<?php
echo preg_replace('#<a.*?>([^>]*)</a>#i', '$1', $str);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment