Committer: ailyin
LJSUP-10965 (Remove class and id from posts)U trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl =================================================================== --- trunk/cgi-bin/cleanhtml.pl 2012-01-16 13:29:41 UTC (rev 20907) +++ trunk/cgi-bin/cleanhtml.pl 2012-01-16 13:57:00 UTC (rev 20908) @@ -1000,7 +1000,11 @@ } } - if (($attr eq 'class' || $attr eq 'id') && $opts->{'strongcleancss'}) { + if ( + lc $tag ne 'lj-embed' && + ( $attr eq 'class' || $attr eq 'id' ) && + $opts->{'strongcleancss'} ) + { delete $hash->{$attr}; next; }