Changeset 41618 in spip-zone


Ignore:
Timestamp:
Oct 7, 2010, 6:59:29 PM (9 years ago)
Author:
cedric@…
Message:

interdire_scripts renvoie maintenant une classe echappe-js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/tests/texte/interdire_script.php

    r14631 r41618  
    4141        $GLOBALS['filtrer_javascript'] = -1;
    4242        $essais[] =
    43          array("<code>&lt;script type='text/javascript' src='toto.js'&gt;&lt;/script&gt;</code>","<script type='text/javascript' src='toto.js'></script>");
     43         array("<code class=\"echappe-js\">&lt;script type='text/javascript' src='toto.js'&gt;&lt;/script&gt;</code>","<script type='text/javascript' src='toto.js'></script>");
    4444         
    4545        $essais[] =
    46          array("<code>&lt;script type='text/javascript' src='spip.php?page=toto'&gt;&lt;/script&gt;</code>","<script type='text/javascript' src='spip.php?page=toto'></script>");
     46         array("<code class=\"echappe-js\">&lt;script type='text/javascript' src='spip.php?page=toto'&gt;&lt;/script&gt;</code>","<script type='text/javascript' src='spip.php?page=toto'></script>");
    4747
    4848        $essais[] =
    49          array("<code>&lt;script type='text/javascript'&gt;var php=5;&lt;/script&gt;</code>","<script type='text/javascript'>var php=5;</script>");
     49         array("<code class=\"echappe-js\">&lt;script type='text/javascript'&gt;var php=5;&lt;/script&gt;</code>","<script type='text/javascript'>var php=5;</script>");
    5050         
    5151        $essais[] =
    52          array("<code>&lt;script language='javascript' src='spip.php?page=toto'&gt;&lt;/script&gt;</code>","<script language='javascript' src='spip.php?page=toto'></script>");
     52         array("<code class=\"echappe-js\">&lt;script language='javascript' src='spip.php?page=toto'&gt;&lt;/script&gt;</code>","<script language='javascript' src='spip.php?page=toto'></script>");
    5353         
    5454        $essais[] =
Note: See TracChangeset for help on using the changeset viewer.