TinyMCE inserting line breaks into some list items
Jamroom Developers
I don't think so, but I'll double check that next week.
function jrCore_remove_unwanted_breaks($string)
{
if (strpos(' ' . $string, "<br>")) {
// fix ul
if (strpos(' ' . $string, "<ul")) {
$_tmp = explode( "\n", $string);
if ($_tmp && is_array($_tmp)) {
foreach ($_tmp as $k => $line) {
if (strpos(' ' . $line, "><br>")) {
$_tmp[$k] = str_replace("><br>", '>', $line);
}
}
$string = implode("\n", $_tmp);
}
}
function jrCore_remove_unwanted_breaks($string)
{
// fix ul
if (strpos(' ' . $string, '')) {
if (strpos(' ' . $string, ' $line) {
if (strpos(' ' . $line, '>')) {
$_tmp[$k] = str_replace('>', '>', $line);
}
}
$string = implode("\n", $_tmp);
}
}