Fix for add spaces if need be?

  1. In this function, sometimes the path to the image includes spaces. I need those to be rendered as %20 as they are being sent by email....
  2.  
  3.  <?php
  4.       $img = theme( 'imagecache', 'printer_pic',  $fullnode->field_headshot[0]['filepath']);
  5.       print l($img, $node->path, array( 'target' => '_blank', 'html' => 'true' , 'attributes' => array( 'alt' => $node->title, 'title' => $node->title )));
  6.     ?>  

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.