Active
Project:
CCK Teaser Field
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2009 at 22:34 UTC
Updated:
1 Sep 2009 at 17:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
fp commentedComment #2
nedjoThanks for the patch!
I like the idea of testing for empty content, and using drupal_html_to_text() is clever.
I'm concerned thought that we could end up suppressing legitimate content. For example, what if the content was an embed element?
Comment #3
fp commentedGood point. I'll need to meditate a bit more on this, but at this time I see two approaches:
1) Finding out if we can suck up the "empty" field value for the different editors (via the wysiwyg module or not). This may not be easily feasible and/or sustainable;
2) Do some regexing to look for empty tags or tags that do not require text to output a value (such as the object tag) after which we could use something like drupal_html_to_text().
Maybe there are more interesting approaches?