replace
  
   
    
    
    
    
    
    
     
      Parameter Position
      Type
      Required
      Default
      Description
     
    
    
     
      1
      string
      Yes
      n/a
      This is the string of text to be replaced.
     
     
      2
      string
      Yes
      n/a
      This is the string of text to replace with.
     
    
   
  
  
   A simple search and replace on a variable.
  
  
   replace
   
assign('articleTitle', "Child's Stool Great for Use in Garden.");
$smarty->display('index.tpl');
?>
]]>
   
   
    Where index.tpl is:
   
   
   
   
    This should output: