silverstripe-framework/tests/php
Simon Gow 22b514c421 #9114 - DBText::ContextSummary() cuts line breaks
ContextSummary() was cutting the HTML which was added by nl2br because
it expected plain text elements as it's stripping and replacing text.
Instead this fix changes the behaviour to apply the nl2br after the text
changes have been made. That way we can't cut anything in the middle of
a HTML tag, but new lines, or paragraphs are replaced by BRs after,
should they exist.

- Added tests to ensure text is not cut in the middle of a sentence.
- Added test to ensure that <br>'s are added in the correct place should
the summary span between new lines.
2019-07-19 12:43:20 +12:00
..
Control FIX Confirmation components to respect SS_BASE_URL (#9074) 2019-07-05 16:05:41 +12:00
Core Merge branch '4.4' into 4 2019-07-15 09:24:49 +12:00
Dev BUG Fix issue with assertListEquals() ignoring field getters 2019-01-11 11:35:11 +13:00
Forms Remove use_gzip from HTMLEditorField since it's been removed by TinyMCE codebase (#7261) 2019-06-21 09:27:48 +12:00
i18n NEW Scaffolded field labels now only have an uppercased first word 2019-01-07 17:52:28 +01:00
Logging Fix rebase conflicts 2018-11-13 11:09:33 +02:00
ORM #9114 - DBText::ContextSummary() cuts line breaks 2019-07-19 12:43:20 +12:00
Security FIX Confirmation components to respect SS_BASE_URL (#9074) 2019-07-05 16:05:41 +12:00
View Merge branch '4.3' into 4.4 2019-06-10 17:32:07 +12:00