title: output html with echo
body: <p>i am echoing html with php echo </p>
  
  <p>for example : </p>
  
  <pre><code>echo "&lt;span onClick='popUpWin('add_page.php?id=".$row[Id]."', 'standard', '1000', '600',30,150)'&gt;&lt;img src='images/editbtn.png' class='ddpngfix'&gt;&lt;/span&gt;";
  </code></pre>
  
  <p>it is displaying data as it should be, my problem is when i click on image it is not calling function popUpWin, it is present on the same page, and when i checked in firebug inspect element it is showing span element totally broken, please check below image</p>
  
  <p><a href="https://i.stack.imgur.com/HWbsd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HWbsd.png" alt="enter image description here"></a>     </p>
  
  <p>i know quotes are making problem , How to solve this ? </p>