|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
kenguruh Smarty Rookie
Joined: 17 Aug 2012 Posts: 7 Location: Germany
|
Posted: Thu Mar 13, 2014 10:59 am Post subject: htmlspecialchars |
|
|
Hallo,
Ich habe Formulare mit sehr vielen Input und Textarea Feldern... Damit "Hallo" (mit ") angezeigt wird, muss man ja htmlspecialchars anwenden.
Gibt es bei Smarty eine Möglichkeit, dass alle Felder mit htmlspecialchars versehen werden? Oder muss man überall {$variable|htmlspecialchars} angeben?
Mfg Kenguruh
P.S.: Meine Frage ist ja Blödsinn... Woher soll Smarty wissen, ob die {$variable} in einem Input oder in einem normalen Text vorkommt. Im Text wäre es ja dann kontraproduktiv... |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|