Hallo Powl.
Aber ich tendiere mittlerweile auch eher zu der Möglichkeit mittels preg_replace "\n" aus einzeiligen Eingabefeldern auszufiltern.
Wenn, dann genügt hier str_replace vollkommen.
Und rein faktisch gesehen ist nur „\r\n“ relevant, da dies für einen standardkonformen MTA den Terminator für Mailheader darstellt.
Für defekte MTAs kann es aber nicht schaden, zusätzlich noch „\n“ hinzu zu nehmen.
Einen schönen Samstag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]