Welcome Guest, Not a member yet? Register   Sign In
CI 3 form helper add new lines after form_element
#2

While you can quite easily setup a MY_form_helper to prevent the newline outputs, you should be passing the output through a function (like json_encode(), for example) to ensure the output is safe to use in a JavaScript string. For an example of why this might be important, what would happen to your code if the output of form_input() used single quotes instead of double quotes?
Reply


Messages In This Thread
RE: CI 3 form helper add new lines after form_element - by mwhitney - 10-28-2015, 11:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB