i have a problem: i want to use the teaser break function in combination with htmlawed and cant get it to work.
when i turn off the htmlawed filter, the teaserbreak works properly, once i turn htmlawed on, it stops working.

i tried to add

!--break--
break

to the config (body, teaser, comments, other) but it just doesnt work... can anybody help me with a step by step how to make it work?

thanks!!!!

Comments

drupalok’s picture

i tried this too:
<!--break-->

alpha2zee’s picture

Can you have the settings such that the htmLawed filter is run the last?

drupalok’s picture

hi alpha and thanks for your reply

htmlLawed does run last already...

alpha2zee’s picture

In the config. for htmLawed, try setting 'comment=>2', so your values looks something like: 'safe'=>1, 'elements'=>'a, em, strong, cite, code, ol, ul, li, dl, dt, dd', 'deny_attribute'=>'id, style', 'comment=>2'

Normally, without the 'comment' parameter and with 'safe'=1, HTML comments are removed from input. The teaser-breaking is based on HTML comments, and this might allow it to work.

alpha2zee’s picture

I am unable to reproduce this issue (using Drupal 6.20, latest htmLawed module, input format with following filters, in that order: URL generator, line-breaker, htmLawed). I am able to get teasers with the default htmLawed config. Any thoughts?

drupalok’s picture

Status: Active » Needs review

thanks alpha for checking... still have my problem, but i will try to find out... maybe i should start from scratch

andyf’s picture

Status: Needs review » Active

(needs review means there's a patch for review)

alpha2zee’s picture

Status: Active » Closed (works as designed)

Can't replicate the issue with version 2.10 of the module in Drupal 6. Closing issue.

kerasai’s picture

Just came across this myself, looks like the syntax in #4 was a little off. I used 'comment' => '2' and comments in the markup no longer appeared. Hope that helps someone in the future.