Closed (fixed)
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2018 at 16:29 UTC
Updated:
8 Nov 2018 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnchqueThis should work, working on tests now. :)
Comment #4
johnchqueOk, adding tests, not sure if HEAD is failing. Seems demo is used on some tests. We should remove that.
Comment #6
miro_dietikerUse methods like htmlspecialchars, not selfcoded replaces.
Comment #7
johnchqueThat's true. Thanks.
Comment #8
johnchqueFails should be fixed in #3008584: Remove demo from tests :)
Comment #9
miro_dietikerSorry, i think this should go into the getTextSummary() method and the raw text also need to be truncated like usual for text fields.
Currently there wouldn't be any summary from such a text field as soon as a behavior setting is applied, making the summary as unclear as before. It's really a fallback for an empty text field.
We will work on displaying behavior summaries differently soon and keep this separated from the text summary.
Comment #10
johnchqueRight, updating. :)
Comment #11
miro_dietikerDid some rewrite as i don't want to drop the parent strip_tags to protect from bad content of other summary components like labels...
Ready?
Comment #13
miro_dietikerAwesome, committed.