Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2009 at 07:41 UTC
Updated:
11 Sep 2009 at 13:55 UTC
i have a site with an overview of content in a table (http://www.ding-dong.at/immobilien) and i trim the text to xx signs in the description cell. the problem is that views seems to count also xhtml commands and cuts them and adds the "..." at the end like this:
this is a text
i think it would be a great solution if it counts only the letters/spaces and not xhtml commands.
greets
Comments
Comment #1
mp commentedsorry, forgot to add the code tags
Comment #2
dawehnerdo you have enabled 'Field can contain HTML'?
Comment #3
mp commented"Field can contain HTML" is enabled
Comment #4
merlinofchaos commentedI think this is an error I introduced into the regex that is causing it to fail. I'll need to fix that. Again.
Comment #5
mp commentedokidoki, thanks :)
Comment #6
jcmarco commentedLast Commit #220138 by merlinofchaos at 02:55 from 3rd June, now is broken content with html that worked fine before.
It is not removing open < from html links in content.
Before it worked fine with the "Field can contain HTML" option on and off, but with last patch always fails not removing open tags.
Comment #7
merlinofchaos commentedHm. My testing is showing it working in all cases. Can you give me something specific that's breaking that maybe I missed?
Comment #8
merlinofchaos commentedOk, figured it out. There were a couple of problems that were making it invisible to me.
Comment #9
merlinofchaos commentedOk, this time I'm sure this is really and truly fixed, the broken tag fixing should do what it is supposed to.
Comment #10
jcmarco commentedThank you for the fix
I am checking changes in the CVS messages for your last commit as code is not yet released,
but this line in the code is probably just for debugging:
476 dsm($value);
Comment #11
merlinofchaos commentedBah, I suck. Been working too hard =)
Comment #13
jrabeemer commentedCan we get this to do trim whitespace off the edges as in applying the function trim()?