Hi guys,

I was testing a module when I noticed that one of my node's teaser was ending in the middle of a <blockquote> tag. This means anything after that teaser would appear "block quoted" (shifted to the right).

I understand that you do not check anything in regard to the HTML tags, but I thought that Drupal was all about being able to write HTML and stuff. So what's the deal here? I have seen many bug reports, many people got caught because of that one and it would need to be fixed...

Although it would be neat in 6.10, having it in 7.x only would already be a good thing. Just try to explain why things go bad to a totally non-technical user is really difficult. (even if all they have to do is add the splitter...)

It seems to me that all you have to do is do the cut as per your current code, then load the result using the XML loader, then save it back in a string. The result will automatically included the closing tags. All you have to do is tell the XML loader that it is okay if some closing tags are missing... That would probably be the most complicated part of this task.

What do you think?

Thank you.
Alexis Wilke

Comments

brianV’s picture

Version: 6.10 » 7.x-dev

Bumping to 7.X, as this would be implemented there.

Cool_Goose’s picture

Hi. I'm trying to tackle this but node_teaser doesn't exist anymore. I guess I should learn a bit about Fields API and see how it's done now ?

AlexisWilke’s picture

I dunno as much about 7.x... 8-)

Now HTML Corrector, I think, is supposed to do that sort of a thing... so an idea would be to force the application of that module?

Thank you.
Alexis Wilke

dooug’s picture

Status: Active » Closed (works as designed)

According to this documentation on Manually setting teaser Break, the HTML Corrector module is part of core since D6. You can either manually insert <!--break--> in your body. If it isn't working, double check the "Text Formats" admin settings.