display:inline-block;display:block;
" . $tval . "
" . $tval . "
" . $tval . "


"; if ($pretd != '') { $prebit="
" . $tval . "


"; } $divbit=str_replace('pre', 'div', $prebit); echo " var justr=false, justn=false, justrn=false, justro=false, justrc=false; var twentythree=-1, tts=''; var linesc=[" . $clinesc . "]; var lineso=[" . $clineso . "]; function whichd(ofo) { //alert(90); var dv=document.getElementById('thistitle').value; var dvs=document.getElementById('thistitle').value.split(String.fromCharCode(13) + String.fromCharCode(10)); twentythree=23; tts=String.fromCharCode(13) + String.fromCharCode(10); //alert('' + dvs.length); if (eval('' + dvs.length) <= 1) { dvs=document.getElementById('thistitle').value.split(String.fromCharCode(10)); if (eval('' + dvs.length) != 0) { twentythree=10; tts=String.fromCharCode(10); } } if (eval('' + dvs.length) <= 1) { dvs=document.getElementById('thistitle').value.split(String.fromCharCode(13)); if (eval('' + dvs.length) != 0) { twentythree=13; tts=String.fromCharCode(13); } } if (eval('' + encodeURIComponent(dv).length) < 800) { //alert(91); setTimeout(whichdofo, 2000); return false; } return whichdofo(); } function whichdofo() { var anymore=''; var dv=document.getElementById('thistitle').value; var wasv=dv; var dvs=document.getElementById('thistitle').value.split(String.fromCharCode(13) + String.fromCharCode(10)); if (justrc) { anymore='&justrc='; } if (justro) { anymore='&justro='; } twentythree=23; tts=String.fromCharCode(13) + String.fromCharCode(10); if (eval('' + dvs.length) <= 1) { dvs=document.getElementById('thistitle').value.split(String.fromCharCode(10)); if (eval('' + dvs.length) != 0) { twentythree=10; tts=String.fromCharCode(10); } } if (eval('' + dvs.length) <= 1) { dvs=document.getElementById('thistitle').value.split(String.fromCharCode(13)); if (eval('' + dvs.length) != 0) { twentythree=13; tts=String.fromCharCode(13); } } if (eval('' + encodeURIComponent(document.getElementById('thistitle').value).length) < 800) { document.getElementById('myform').method='GET'; if (justrn && twentythree == 23) { location.href=document.URL.split('#')[0].split('?')[0] + '?thistitle=' + encodeURIComponent(wasv) + anymore; return false; } if (justr && twentythree == 13) { location.href=document.URL.split('#')[0].split('?')[0] + '?thistitle=' + encodeURIComponent(wasv) + anymore; return false; } if (justn && twentythree == 10) { location.href=document.URL.split('#')[0].split('?')[0] + '?thistitle=' + encodeURIComponent(wasv) + anymore; return false; } if (justrn) { if (twentythree == 13) { while (wasv.indexOf(String.fromCharCode(13)) != -1) { wasv=wasv.replace(String.fromCharCode(13),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(13) + String.fromCharCode(10)); } else if (twentythree == 10) { while (wasv.indexOf(String.fromCharCode(10)) != -1) { wasv=wasv.replace(String.fromCharCode(10),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(13) + String.fromCharCode(10)); } } else if (justr || justro || justrc) { if (twentythree == 23) { while (wasv.indexOf(String.fromCharCode(13) + String.fromCharCode(10)) != -1) { wasv=wasv.replace(String.fromCharCode(13) + String.fromCharCode(10),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(13)); } else if (twentythree == 10) { while (wasv.indexOf(String.fromCharCode(10)) != -1) { wasv=wasv.replace(String.fromCharCode(10),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(13)); } } else if (justn) { if (twentythree == 23) { while (wasv.indexOf(String.fromCharCode(13) + String.fromCharCode(10)) != -1) { wasv=wasv.replace(String.fromCharCode(13) + String.fromCharCode(10),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(10)); } else if (twentythree == 13) { while (wasv.indexOf(String.fromCharCode(13)) != -1) { wasv=wasv.replace(String.fromCharCode(13),'~!@#'); } wasv=wasv.replace(/\~\!\@\#/g, String.fromCharCode(10)); } } location.href=document.URL.split('#')[0].split('?')[0] + '?thistitle=' + encodeURIComponent(wasv) + anymore; return false; } if (justrn && twentythree == 23) { return true; } if ((justr || justro || justrc) && twentythree == 13) { return true; } if (justn && twentythree == 10) { return true; } //alert(8); if (justrn) { if (twentythree == 13) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(13)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(13),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(13) + String.fromCharCode(10)); } else if (twentythree == 10) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(10)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(10),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(13) + String.fromCharCode(10)); } } else if (justr || justro || justrc) { if (twentythree == 23) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(13) + String.fromCharCode(10)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(13) + String.fromCharCode(10),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(13)); } else if (twentythree == 10) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(10)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(10),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(13)); } } else if (justn) { if (twentythree == 23) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(13) + String.fromCharCode(10)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(13) + String.fromCharCode(10),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(10)); } else if (twentythree == 13) { while (document.getElementById('thistitle').value.indexOf(String.fromCharCode(13)) != -1) { document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(String.fromCharCode(13),'~!@#$'); } document.getElementById('thistitle').value=document.getElementById('thistitle').value.replace(/\~\!\@\#\$/g, String.fromCharCode(10)); } } return true; } function justrntrue() { justrn=true; justr=false; justn=false; //alert('here'); justro=false; justrc=false; } function justntrue() { justn=true; justr=false; justrn=false; justro=false; justrc=false; } function justrtrue() { justr=true; justrn=false; justn=false; justro=false; justrc=false; } function justrotrue() { justr=false; justrn=false; justn=false; justro=true; justrc=false; } function justrctrue() { justr=false; justrn=false; justn=false; justro=false; justrc=true; } function tc() { var mm=0; var kk=0; var jj=0; var rect=null; var clone=''; var tables=[]; var threes=['div','pre']; if (" . strlen($tval) . " != 0) { document.title=document.getElementById('mydiv').textContent; //alert(document.getElementById('mydiv').textContent); if (eval('' + linesc.length) > 0) { document.getElementsByTagName('textarea')[0].value='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('pre')[0].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('pre')[1].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('pre')[2].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('span')[0].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('div')[0].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('div')[1].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; document.getElementsByTagName('div')[2].innerHTML='' + linesc[eval(-1 + eval('' + linesc.length))]; } else if (eval('' + lineso.length) > 0) { tables=document.getElementsByTagName('table'); for (jj=eval(-1 + eval('' + tables.length)); jj>=0; jj--) { if (tables[jj].outerHTML.split('>')[0].indexOf(' border=') == -1 && tables[jj].outerHTML.split('>')[0].indexOf('table') == -1) { rect=tables[jj].getBoundingClientRect(); tables[jj].style.position='absolute'; tables[jj].style.top='' + rect.top + 'px'; tables[jj].style.left='' + rect.left + 'px'; tables[jj].style.width='' + rect.width + 'px'; tables[jj].style.height='' + rect.height + 'px'; } } document.getElementsByTagName('textarea')[0].value='' + lineso[0]; if (1 == 1) { document.body.style.backgroundColor='transparent'; document.getElementsByTagName('textarea')[0].style.backgroundColor='transparent'; } else { document.getElementsByTagName('textarea')[0].style.opacity='0.5'; } rect=document.getElementsByTagName('textarea')[0].getBoundingClientRect(); document.getElementsByTagName('textarea')[0].style.position='absolute'; document.getElementsByTagName('textarea')[0].style.top=('' + rect.top).split('.')[0] + 'px'; document.getElementsByTagName('textarea')[0].style.left=('' + rect.left).split('.')[0] + 'px'; document.getElementsByTagName('textarea')[0].style.width=('' + rect.width).split('.')[0] + 'px'; document.getElementsByTagName('textarea')[0].style.height=('' + rect.height).split('.')[0] + 'px'; clone=document.getElementsByTagName('textarea')[0].outerHTML.replace(' id=', ' data-id=').replace(' name=', ' data-name=').replace(' value=', ' value=\"\" data-value=').split('>')[0]; for (jj=1; jj' + lineso[jj] + ''); document.getElementById('overlays').innerHTML+=clone + '>' + lineso[jj] + ''; } document.getElementsByTagName('span')[0].innerHTML='' + lineso[0]; if (1 == 1) { document.body.style.backgroundColor='transparent'; document.getElementsByTagName('span')[0].style.backgroundColor='transparent'; document.getElementsByTagName('span')[0].style.border='0px solid red'; } else { document.getElementsByTagName('span')[0].style.opacity='0.5'; } rect=document.getElementsByTagName('span')[0].getBoundingClientRect(); document.getElementsByTagName('span')[0].style.position='absolute'; document.getElementsByTagName('span')[0].style.top=('' + rect.top).split('.')[0] + 'px'; document.getElementsByTagName('span')[0].style.left=('' + rect.left).split('.')[0] + 'px'; document.getElementsByTagName('span')[0].style.width=('' + rect.width).split('.')[0] + 'px'; document.getElementsByTagName('span')[0].style.height=('' + rect.height).split('.')[0] + 'px'; clone=document.getElementsByTagName('span')[0].outerHTML.replace(' id=', ' data-id=').replace(' name=', ' data-name=').replace(' value=', ' value=\"\" data-value=').split('>')[0]; for (jj=1; jj' + lineso[jj] + ''); document.getElementById('overlays').innerHTML+=clone + '>' + lineso[jj] + ''; } var documentgetElementsByTagNamepre=[]; for (mm=0; mm')[0]; for (jj=1; jj' + lineso[jj] + ''); if (1 == 2 && document.getElementById('td' + documentgetElementsByTagNamepre[kk].id)) { document.getElementById('td' + documentgetElementsByTagNamepre[kk].id).innerHTML+=clone + '>' + lineso[jj] + ''; } else { document.getElementById('overlays').innerHTML+=clone + '>' + lineso[jj] + ''; } } } } //document.getElementsByTagName('div')[0].innerHTML='' + lineso[0]; //document.getElementsByTagName('div')[1].innerHTML='' + lineso[0]; //document.getElementsByTagName('div')[2].innerHTML='' + lineso[0]; //document.getElementsByTagName('div')[0].style.opacity='0.5'; //document.getElementsByTagName('div')[1].style.opacity='0.5'; //document.getElementsByTagName('div')[2].style.opacity='0.5'; //alert('o=' + lineso.length); } } }

Carriage Return and/or Linefeed

RJM Programming - April, 2022
Proving javascript - Why carriage return not rendered as a line break when assigned to textContent although formatted using pre? - Stack Overflow

Hover or click main heading up the top to see, reflected, the textarea record delimiter arrangement the button you pressed suggests





... textarea above vs pre element below ...

" . $prebit . "

... vs span element below ...


" . $tval . "

... vs div element below ...

" . $divbit . "




    

"; ?>