Dealing with Korean text breaking words
Why not use jquery plugin - https://github.com/mytory/jquery-word-break-keep-all
This plugin is for it. IE has CSS property word-break: keep-all; but other browser has not.
The SPACE character generally allows a line break. This is not affected by the word-break
property. To disallow a line break, use NO-BREAK SPACE instead of SPACE, e.g. 십 니까
. Alternatively, wrap a sequence of characters that should not be broken in a span
element and set white-space: nowrap
on it.
Use the CSS rule word-break: keep-all
. It's now supported in all browsers but Microsoft Edge (a change since 2014 when the accepted answer above was posted).