+2005-04-03 Michael Stucki <michael@typo3.org>
+
+ * Fixed a stupid error in the display-empty-tags function
+
2005-04-01 Kasper Skårhøj,,, <kasper@typo3.com>
* Updated all years from 2004 to 2005
* @param boolean If true, empty tags will be filled with the first attribute of the tag before.
* @return string Input string with all HTML and PHP tags stripped
*/
- function strip_tags($input, $fillEmptyContent=false) {
- if($fillEmptyContent && ereg('><', $input)) {
- $matches = explode('</', $input);
+ function strip_tags($content, $fillEmptyContent=false) {
+ if($fillEmptyContent && ereg('><', $content)) {
+ $matches = explode('</', $content);
foreach($matches as $key=>$val) {
if($key==count($matches)-1) { continue; } // skip the last match
$matches[$key] .= $tagContent;
}
}
- $output = implode('</', $matches);
+ $content = implode('</', $matches);
}
- return strip_tags($output);
+ return strip_tags($content);
}
}