0

My variable $user_lm contains a single quote and cause an issue to open the file on click.

  echo"
         <a target='_blank' href='/uploaded_files/$user_lm'>
          <img class='img-fluid' src='img/lm.png' alt=''> </a> ";
               

I would like to escape the quote to echo my href correctly

Thanks

Yas
  • 7
  • 2
  • https://stackoverflow.com/questions/7036931/php-variables-in-strings-without-concatenation – t q Nov 10 '21 at 19:37

0 Answers0