<?php 

header("content-type: application/x-javascript"); 


$html = 'user is Kcko , job: developer';
$html = replace_newline($html);
$html = str_replace("'", "\"", $html);


function replace_newline($string) {
    return (string)str_replace(array("\r", "\r\n", "\n"), '', $string);
}

?>

document.write('<?= $html ?>');