Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
$string = str_replace("\n", '<br />', $string);
$string = str_replace('<br />', "\n", $string);
<script type="text/javascript">
//<![CDATA[
function nl2br(text) {
document.getElementById('eingabe').value = text.replace("/\\n/", "<br />");
}
//]]>
</script>
[...]
<form action="" method="get" onsubmit="nl2br(document.getElementById('eingabe').value)">
[...]
<textarea id="eingabe" rows="5" cols="30"></textarea>
function nl2br(text)
{
document.getElementById('channelbeschreibung').value = text.replace(/\n/g, ' -2- ');
}