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

As Narf said, you're not supposed to modify the framework's files. The parameter was added specifically so you could do this:

PHP Code:
echo form_input("explanation"set_value("explanation"$ruleObject['explanation'], false)); 

The documentation for set_value() even states this:
Quote:The third (optional) parameter allows you to turn off HTML escaping of the value, in case you need to use this function in combination with i.e. form_input() and avoid double-escaping.
Reply


Messages In This Thread
set_value html_escape twice - by FnX - 08-04-2015, 03:22 AM
RE: set_value html_escape twice - by Avenirer - 08-05-2015, 06:18 AM
RE: set_value html_escape twice - by FnX - 08-05-2015, 11:30 AM
RE: set_value html_escape twice - by Avenirer - 08-05-2015, 12:25 PM
RE: set_value html_escape twice - by Avenirer - 08-05-2015, 12:29 PM
RE: set_value html_escape twice - by Narf - 08-05-2015, 12:53 PM
RE: set_value html_escape twice - by FnX - 08-06-2015, 01:59 AM
RE: set_value html_escape twice - by Narf - 08-06-2015, 02:42 AM
RE: set_value html_escape twice - by mwhitney - 08-06-2015, 06:34 AM
RE: set_value html_escape twice - by FnX - 08-09-2015, 05:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB