Skip to content

Instantly share code, notes, and snippets.

@codeeshop-oc
Created July 4, 2021 09:06
Show Gist options
  • Save codeeshop-oc/02c7676e4e92526065cd1bd117a1b205 to your computer and use it in GitHub Desktop.
Save codeeshop-oc/02c7676e4e92526065cd1bd117a1b205 to your computer and use it in GitHub Desktop.
Replacing Unwanted Characters
private function replaceExtraCode($text = '') {
return html_entity_decode(str_replace([''', ''', '''], ['\''], $text));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment