Skip to content

Instantly share code, notes, and snippets.

@rmdort
Created March 19, 2011 16:12
Show Gist options
  • Save rmdort/877572 to your computer and use it in GitHub Desktop.
Save rmdort/877572 to your computer and use it in GitHub Desktop.
Parse Expression Engine File Directories
function parsefile($str = '')
{
$EE =& get_instance();
$str = ($str == '') ? $EE->TMPL->tagdata : $str;
$EE->load->library('typography');
return $EE->typography->parse_file_paths($str);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment