Sources for file plugins/smarty/modifier.strip_tags.php in version 2.0 Release Candidate 1



Click on a comment to hide it. Click here to show all comments.

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     modifier
 * Name:     strip_tags
 * Purpose:  strip html tags from text
 * -------------------------------------------------------------
 */
function smarty_modifier_strip_tags($string$replace_with_space true)
{
    if (
$replace_with_space)
        return 
preg_replace('!<[^>]*?>!'' '$string);
    else
        return 
strip_tags($string);
}

/* vim: set expandtab: */

?>


Website is Copyright © Odynia.org 2000-2005 - Xnyo is released under a BSD license.