I installed drupal 4.6.0 and i have been encountering problems when i post content that is enclosed withing formatting tags and longer than the length specified in the content settings ( the default is 600)

If i use any formatting like <em> or other tags then the teaser truncates the text upto 600 characters and posts it in the main page. The problem is that the TAG is not closed at this point and the remaining page is also generated where all the remaining teasers are displayed as if they have been enclosed in <em> tags.

I think this is a bug. Or if there is a workaround to this please let me know.

Also another problem is if i set the length at 600 and i post a blog in which each line has one character on each line then the teaser will be 600 or so lines long, which kinda goes against the whole point of having a teaser.

Comments

Uwe Hermann’s picture

Title: Incorrect formatting bug » Non-closed HTML tags break teaser
Cvbge’s picture

Hmm IIRC there are functions to parse php, maybe there are functions/library to parse html?
Then we could just parse teaser and close all not-closed tags...

dkruglyak’s picture

Component: other » filter.module
Priority: Normal » Critical

Yes, we should add closing of teaser tags. Probably this should be done by the default HTML input filter?

Steven’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)

Install HTMLcorrector if you need this.