Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: None
-
Component/s: Zend_Filter
-
Labels:None
-
Fix Version Priority:Should Have
Description
A filter dropping new line control characters (\n, \r\n, \r) would be nice, maybe something like that:
<?php require_once 'Zend/Filter/Interface.php'; class Zend_Filter_DropNewLines implements Zend_Filter_Interface { public function filter($value) { return str_replace(array("\n", "\n\r", "\r"), '', $value); } }
Issue Links
| This issue depends on: | ||||
| ZF-3793 | Promote Zend_Filter_StripNewlines from proposal |
|
|
|
I'll submit the proposal on tomorrow afternoon (GMT+1) and code with unit tests.