How to force breaking of non breakable strings?

后端 未结 9 1187
-上瘾入骨i
-上瘾入骨i 2021-02-04 18:52

I have an HTML page that I generate from the data contained in a database. The database sometimes contains long strings that the browser can\'t break because the strings don\'t

9条回答
  •  萌比男神i
    2021-02-04 19:46

    As it has been pointed out numerous times, no, there is nothing you can do about it, without preprocessing the strings programmatically before displaying them.

    I know there is a strategy with inserting the soft hyphen character (­), where needed, but does not seem like a popular option.

    Check out this question: Soft hyphen in HTML ( vs. ­)

提交回复
热议问题