contact form – adding line breaks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10036893
    RadomirRadi
    Participant

    Hi guys,

    currently, I’m always receiving e-mail contact messages without any linebreaks.
    How I need to modify your code: $message .= $label.”: ” . htmlspecialchars($value, ENT_QUOTES) . “<br>\n”;
    to get all linebreaks, as in the text area of my original message from the contact form?



    Template Version: Industry
    #10036900
    Support
    Keymaster

    Hello,

    Please try changing this line of code to:

    $message .= $label.": " . nl2br(htmlspecialchars($value, ENT_QUOTES)) . "<br>";

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.

    If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.