<!DOCTYPE html>
<html>
<head>
</head>
<body>
<textarea onblur="e(this);"></textarea>
<div id="d"></div>
<script type="text/javascript">
function e(ths)
{
document.getElementById('d').innerHTML = ths.value.split('\n').join('.');
}
</script>
</body>
</html>