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

[eluser]EzraBynx[/eluser]
I think you may want to look into form_prep() as well which is called automatically when you use set_value(). form_prep() is why you are seeing the HTML escape happening.

From the manual:

form_prep()

Allows you to safely use HTML and characters such as quotes within form elements without breaking out of the form. Consider this example:

$string = 'Here is a string containing "quoted" text.';

<input type="text" name="myform" value="$string" />
Since the above string contains a set of quotes it will cause the form to break. The form_prep function converts HTML so that it can be used safely:

<input type="text" name="myform" value="<?php echo form_prep($string); ?>" />
Note: If you use any of the form helper functions listed in this page the form values will be prepped automatically, so there is no need to call this function. Use it only if you are creating your own form elements.


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