Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20908: LJSUP-10965 (Remove class and id from po...

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;
                     }

Tags: ailyin, andy, livejournal, pl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments