how to convert all characters to their html entity equivalent using PHP
- by Ashley Ward
I want to convert this hello@domain.com to
hello@domain.com
I have tried:
url_encode($string)
this provides the same string I entered, returned with the @ symbol converted to %40
also tried:
…