Hallo Frippe.
ich könnte ja auch alle "<" Zeichen in "<" umwandeln.
$eingabe=preg_replace ('<', '<', $eingabe);
funktioniert aber bei mir nicht!
Und aus dieser hervorragenden Fehlerbeschreibung kann man zweifelsohne sofort erkennen, dass obige Syntax bei dem im Normalfall vorzuziehenden str_replace in Ordnung wäre, in Bezug auf reguläre Ausdrücke hier aber die Delimiter fehlen.
wie würdet ihr das lösen?
Die Funktionen htmlspecialchars und htmlentities erst dann anwenden, wenn sie wirklich erforderlich sind.
Einen schönen Montag 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]