Very long strings that are not hyphenated automatically may need an optional line break without a hyphen. We can generate the HTML tag <wbr> with this replacement code.


Place one or more {‍w} in the middle of the long word where a line break without a hyphen should be applied if necessary:




As you may see, the browser may not follow our suggestion for the word break. The version 120.0.6099.109 the Chrome browser breaks the word with a hyphen at another place for example.