Compare Revisions
Last modification
- Rev 13 2010-06-15 01:31:06
- Author: PointedEars
- Log message:
* features.class.php
- Use script encoding for htmlspecialchars()
* footnotes.class.php
- Added prefix, suffix, and tooltip (title) support
* global.inc
- Added reduceWhitespace()
/trunk/global.inc |
433,4 → 433,16 |
$s); |
} |
|
/** |
* Reduces sequences of two or more consecutive white-space characters |
* in an input to a single space. |
* |
* @param string $s |
* @return string |
*/ |
function reduceWhitespace($s) |
{ |
return preg_replace('/\s{2,}/', ' ', $s); |
} |
|
?> |