Welcome Guest, Not a member yet? Register   Sign In
html_escape on set_value
#10

[eluser]royduin[/eluser]
If I look at set_value it runs through form_prep. When I take a look at form_prep it runs through html_escape! And html_escape is the same as htmlspecialchars with ENT_QUOTES and the charset.

So.. set_value takes values through htmlspecialchars!
But.. the default value just returns! So that is what I have to escape manuel like:
Code:
<input type="text" name="name" value="<? echo set_value('name',html_escape($name)); ?>" />

Thanks for the explanation!


Messages In This Thread
html_escape on set_value - by El Forum - 10-03-2012, 02:21 AM
html_escape on set_value - by El Forum - 10-04-2012, 01:53 AM
html_escape on set_value - by El Forum - 10-04-2012, 03:01 AM
html_escape on set_value - by El Forum - 10-04-2012, 03:08 AM
html_escape on set_value - by El Forum - 10-04-2012, 03:30 AM
html_escape on set_value - by El Forum - 10-04-2012, 03:57 AM
html_escape on set_value - by El Forum - 10-06-2012, 11:29 AM
html_escape on set_value - by El Forum - 10-06-2012, 12:03 PM
html_escape on set_value - by El Forum - 10-06-2012, 12:11 PM
html_escape on set_value - by El Forum - 10-07-2012, 03:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB