How do I replace ampersands in a url from & > &
I use some rss feeds witch has URL containing & should I use
$link = str_replace('&', '&', $link);
or there are other options?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
htmlspecialchars. It replaces not just&but also",<,>, and'(only if quote_style parameter is set toENT_QUOTES) that all need to be replaced with appropriate character references.