<!-- Coding Tools
- Theodorakis Ioannis: Mc Engineer
- Code Blog https://superblogger3.blogspot.com
- Newspsper https://yourss365.blogspot.com 
- Webdesign https://istogrami365.blogspot.com 
- Templates https://webtemplate365.blogspot.com
-->
<center><a href="https://codepen.io/johngreek"><img width="50%" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglP0wkjevU2lAqHYRUSmnXbpxaEYPRzECLqCLuqlVhcnscqOkQfcUPB4zlO7dGNopgZJmvhq2bBYYZtjIghlPhSa_sXBJxHtAQnfiKiyB4joSaDJ1cEDeJgJeqEQQciO30iV-tADAXtQnpN85uG67i52CGr6fsdxq3Kzlw3sTCbF6cwKoaxOO45xJ0ROw/s16000/istogrami900.png"></a></center>

<!DOCTYPE html>
<html>
  <head>
    <title>Line Break Remover</title>
  </head>
  <body>
    <h2>Line Break Remover Paste your formatted text here:</h2>
    <textarea id="input"></textarea>
    <br>
    <button onclick="removeLineBreaks()">Remove Line Breaks</button>
    <br>
    <p>Your text without line breaks:</p>
    <textarea id="output"></textarea>
    <br>
    <button onclick="copyToClipboard()">Copy to Clipboard</button>
  </body>
</html>
textarea {
  width: 100%;
  height: 200px;
}
function removeLineBreaks() {
  var input = document.getElementById("input").value;
  var output = input.replace(/(\r\n|\n|\r)/gm, "");
  document.getElementById("output").value = output;
}

function copyToClipboard() {
  var output = document.getElementById("output");
  output.select();
  document.execCommand("copy");
  alert("Text copied to clipboard!");
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.