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.
ralphm
2
Just for context, how are you doing this publishing? Via some kind of CMS (e.g. WordPress), or via a code editor, or …?
RayWilk
3
Hello ralpm,
Yes the website pages use TinyMCE as the editor for text content,

RayWilk
4
Problem Solved 
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
system
Closed
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.