JSFiddle - React, Tailwind, and code Playground
by vural kaya
HTML
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<div class="yazi">
bu yaziyi nereye kadar okuyabilecegiz merak ediyorum.
</div>
JavaScript
<script type="text/javascript">
var text = $('.yazi').text();
$('.yazi').text( text.substring(0, 50) + '..' );
</script>