Edit in JSFiddle
JavaScript
HTML
CSS
Result
<p>abcdef<wbr/>ghijkl<wbr/>mnñopq<wbr/>rstuvwxyz</p>