Closed (fixed)
Project:
htmLawed
Version:
7.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 May 2012 at 14:57 UTC
Updated:
13 May 2012 at 13:31 UTC
I see in htmLawed 5.x-1.4 http://drupal.org/node/256013 this was fixed.
But in 7.x-3.0 I have no solution.
The problem is in htmlLawed to put whitespase before "-->"
<!--break--> - this work in drupal
<!--break --> - this not work
My config of htmLawed:
'cdata'=> 1, 'comment'=>3, 'css_expression'=>0, 'safe'=>1, 'elements'=>'a, img, u, b, em, strong, cite, blockquote, code, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, div, span, br, hr, sup, sub, table, tr, td, th', 'deny_attribute'=>'id, on*'
Comments
Comment #1
alpha2zee commented<!--break-->is an HTML comment which in the default htmLawed module setting is not permitted. To allow, add, 'comment'=>2to the value for Config. in the module's settings. Check the htmLawed documentation to see how the htmLawed filter handles this setting. I hope this fixes the issue.Note that besides the teaser break marker, this will also allow other HTML comments. However, I do not see any safety or rendering issue because of this.
Comment #2
seaji commentedIn documentation:
My value
'comment'=>3- comments are left as such.In documentation (2.7 Tolerance for ill-written HTML):
and a space will be added before the comment delimiter - this is my case.
Maybe this is not a bug because its in documentation but this "feature" crush drupal teaser break.
Maybe drupal core needs patch to accept
<!--break -->Comment #3
alpha2zee commentedThanks for pointing out the 'space' issue. I will update the module to take care of it. Basically, the module will look for "<!--break -->" in the htmLawed-filtered text to remove the extra space.
Comment #4
alpha2zee commentedI have now released versions 3.1 of the module for Drupal 7, 3.2 and 2.12 for Drupal 6, and 2.10 for Drupal 5 to address this. The code-fix is to correct <!--break --> in the htmLawed-filtered text to remove the extra space. Enabling HTML comments through
'comment' => 2, etc. in Config. is required.Comment #5
seaji commentedGreat
thx )
Comment #6
alpha2zee commentedComment #7
seaji commentedSad sad
Parse error: syntax error, unexpected T_STRING in /...../sites/all/modules/htmLawed/htmLawed.module on line 145Comment #8
alpha2zee commentedWhich version of the module are you using, 3.1 or 3.2?
Comment #9
seaji commentedFixed in htmlLawed 7.x-3.2
Comment #10
alpha2zee commented