diff --git a/resources/views/realisasi_pendapatan/show.blade.php b/resources/views/realisasi_pendapatan/show.blade.php index ec260e4..4893489 100644 --- a/resources/views/realisasi_pendapatan/show.blade.php +++ b/resources/views/realisasi_pendapatan/show.blade.php @@ -130,18 +130,32 @@
@stop @section('scripts2') + @php + $raw_string = $realisasi_pendapatan->kode_rekening_sps . '|' . $realisasi_pendapatan->nama_rekening_sps; + // Replace all types of newlines with a single space or just remove them + $clean_string = str_replace(array("\n", "\r", "\r\n"), ' ', $raw_string); + // NEW: Clean the uraian string too (HIGHLY RECOMMENDED) + $clean_uraian = str_replace(array("\n", "\r", "\r\n"), ' ', $realisasi_pendapatan->simtrad4_uraian); + // NEW: Clean the sp2d_bun string just in case + $clean_sp2d_bun = str_replace(array("\n", "\r", "\r\n"), ' ', $realisasi_pendapatan->simtrad4_sp2d_bun); + @endphp