Website text pages the <br> are being converted into rn text

What is happening is the <br> are being converted into rn text.

Could someone help me with a coding fix for this problem,

When I publish a text page I get:

This is line one with interesting words.

rn

This is live two with even more interesting information.

Just for context, how are you doing this publishing? Via some kind of CMS (e.g. WordPress), or via a code editor, or …?

Hello ralpm,

Yes the website pages use TinyMCE as the editor for text content,

:slight_smile:

Problem Solved :smile:

I had:

function checkRequestData() {
    $conn = mysql_connect(DB_HOST, DB_USER, DB_PASS);
    foreach ($_GET as $k => $val) {
        if (!is_array($val)){$val = mysql_real_escape_string($val, $conn); }
        $_GET[$k] = $val;
    }
    foreach ($_POST as $k => $val) {
        if (!is_array($val)){$val = mysql_real_escape_string($val, $conn); }
        $_POST[$k] = $val;
    }
}

changed it to:

function checkRequestData() {
    $conn = mysql_connect(DB_HOST, DB_USER, DB_PASS);
/*
    foreach ($_GET as $k => $val) {
        if (!is_array($val)){$val = mysql_real_escape_string($val, $conn); }
        $_GET[$k] = $val;
    }
    foreach ($_POST as $k => $val) {
        if (!is_array($val)){$val = mysql_real_escape_string($val, $conn); }
        $_POST[$k] = $val;
    }
*/
}
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.