• Resolved tonihudson123

    (@tonihudson123)


    Using a text box to accept text in a form we find is
    adding html tags within the text. This is actually seen in the
    database table wp_formmaker_submits in the relevant field.
    So a phrase typed in the box like “This is a test message” results in
    the text “This is a test message” within the field. And if the entry
    includes any line feeds then “” is included in the field.
    Surely this should not be the case; surely lf/cr should be included if
    necessary but never or other tags.

Viewing 1 replies (of 1 total)
  • Plugin Contributor WD Support

    (@wdsupport)

    @tonihudson123,

    If you go to form-maker/frontend/models/FMModelForm_maker.php file of your website, and add the following code to it the issue will be resolved.

    case 'type_textarea': {
        $value = isset($_POST['wdform_'.$i."_element".$id]) ? esc_html($_POST['wdform_'.$i."_element".$id]) : "";
        break;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Text Box Entry Includes html tags’ is closed to new replies.