Php cannot print strings normally. how can I solve this problem during development? I need to access a URL http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2 but when I echo & nbsp; 'http: // www. ***. com/api/abc? A = 123 & a php cannot print strings normally. how can this problem be solved?
During development, I need to access a url
Http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2
But when I echo 'http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2 ';
Http: // www. ***. com/api/abc? A = 123 & B = 234 (special character) m = 2
! --The forum with special characters is not allowed to be published. if you want to know what it is, print it yourself.
How to solve php url sharing:
------ Solution --------------------
Html escape,
Echo htmlspecialchars ('http: // www. ***. com/api/abc? A = 123 & B = 234 & param = 2 ');