Has anyone any idea how to prevent IE(7) wrong breaking urls?
Here is the example: http://jsfiddle.net/uQcj5/5/
The problem is that IE breaks url inside words, like:
http://stackoverflow.com/que
stions/
You're telling the browser to break in the middle of words, just remove word-wrap: break-word; from your CSS.
var str = 'http://stackoverflow.com/questions/10620008/ie-long-link-wrong-break'
str = str.replace(/\//g, '/​');
http://jsfiddle.net/uQcj5/10/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With