What is the best way to break HTML text on slashes (/)?
tl;dr; (edited Apr 2022) Use <wbr> word-break-opportunity element before each /. See first link in further reading below. Details (original from 2014) While the css word-wrap: break-word; does work, its implementation is different across browsers. If you have control of the content and want exact breakpoints, you can insert a <wbr> word break (supported in … Read more