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

mp’s picture

sorry, forgot to add the code tags

this is a text</p...
dawehner’s picture

do you have enabled 'Field can contain HTML'?

mp’s picture

"Field can contain HTML" is enabled

merlinofchaos’s picture

I think this is an error I introduced into the regex that is causing it to fail. I'll need to fix that. Again.

mp’s picture

okidoki, thanks :)

jcmarco’s picture

Last 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.

merlinofchaos’s picture

Hm. My testing is showing it working in all cases. Can you give me something specific that's breaking that maybe I missed?

merlinofchaos’s picture

Ok, figured it out. There were a couple of problems that were making it invisible to me.

merlinofchaos’s picture

Status: Active » Fixed

Ok, this time I'm sure this is really and truly fixed, the broken tag fixing should do what it is supposed to.

jcmarco’s picture

Thank 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);

merlinofchaos’s picture

Bah, I suck. Been working too hard =)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jrabeemer’s picture

Can we get this to do trim whitespace off the edges as in applying the function trim()?