Answers for "remove line break in html in javascript"

1

Remove line breaks with JavaScript

String.replace(/(\r\n|\n|\r)/gm," ")
Posted by: Guest on December-10-2020
0

remove line break javascript

<script type="text/javascript">
    var get_banner_detail = `<?php echo json_encode($get_banner_detail); ?>`;

    exam = get_banner_detail.replaceAll(/(\r\n|\n|\r)/gm, '<br>');
</script>
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language