| @@ -46,17 +46,9 @@ | ||
| 46 | 46 | public function show_on_form_builder( $name = '' ) { |
| 47 | 47 | $size = FrmField::get_option( $this->field, 'size' ); |
| 48 | 48 | $max = FrmField::get_option( $this->field, 'max' ); |
| 49 | 49 | |
| 50 | - $html_atts = array( | |
| 51 | - 'name' => $this->html_name( $name ), | |
| 52 | - 'id' => $this->html_id(), | |
| 53 | - 'rows' => $max, | |
| 54 | - 'class' => 'dyn_default_value', | |
| 55 | - 'placeholder' => FrmField::get_option( $this->field, 'placeholder' ), | |
| 56 | - ); | |
| 57 | - echo '<textarea'; | |
| 58 | - FrmAppHelper::array_to_html_params( $html_atts, true ); | |
| 50 | + echo '<textarea name="' . esc_attr( $this->html_name( $name ) ) . '" rows="' . esc_attr( $max ) . '" id="' . esc_attr( $this->html_id() ) . '" class="dyn_default_value"'; | |
| 59 | 51 | |
| 60 | 52 | if ( $size ) { |
| 61 | 53 | if ( is_numeric( $size ) ) { |
| 62 | 54 | $size .= 'px'; |
| @@ -97,9 +89,9 @@ | ||
| 97 | 89 | */ |
| 98 | 90 | public function front_field_input( $args, $shortcode_atts ) { |
| 99 | 91 | $input_html = $this->get_field_input_html_hook( $this->field ); |
| 100 | 92 | $this->add_aria_description( $args, $input_html ); |
| 101 | - $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 93 | + $rows = ( $this->field['max'] ) ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 102 | 94 | |
| 103 | 95 | return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' . |
| 104 | 96 | $rows . $input_html . '>' . |
| 105 | 97 | FrmAppHelper::esc_textarea( $this->field['value'] ) . |