M MilkyMeda Active member Jun 24, 2019 #1 <xf:textbox> doesn't submit the spaces at the front and at the end of a line: What I give: word What I get in the database(no spaces): word How can I allow it to submit spaces like above? Last edited: Jun 24, 2019
<xf:textbox> doesn't submit the spaces at the front and at the end of a line: What I give: word What I get in the database(no spaces): word How can I allow it to submit spaces like above?
Jeremy P XenForo developer Staff member Jun 24, 2019 #2 It's probably being cleaned by the input filterer. You can pass the no-trim option to disable this behavior. PHP: $input = $this->filter('name', 'str,no-trim');
It's probably being cleaned by the input filterer. You can pass the no-trim option to disable this behavior. PHP: $input = $this->filter('name', 'str,no-trim');