Show
Ignore:
Timestamp:
08/06/06 13:23:04 (2 years ago)
Author:
mbonetti
Message:

Experimental: allow UTF-8 tagging

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/ajax.php

    r1493 r1525  
    196196 
    197197function submit_tag_cb(ret) { 
    198     data= ret.replace(/[^a-zA-Z0-9\ _\.,]/gi,"").split(','); 
     198    data= ret.split(','); 
     199    //replace(/[^a-zA-Z0-9\ _\.,]/gi,"") 
    199200    id=data[0]; 
    200201    tags=data[1]; 
     
    218219       // the tag container 
    219220       var tc=document.getElementById("t"+id); 
    220         var tags = tc.innerHTML.replace(/<\/?a[^>]*>(\ $)?/gi,"").replace(<?php echo ALLOWED_TAGS_REGEXP ?>gi,""); 
     221        var tags = tc.innerHTML.replace(/<\/?a[^>]*>(\ $)?/gi,"");  
     222        //.replace(<?php echo ALLOWED_TAGS_REGEXP ?>gi,""); 
    221223        // submit link 
    222224        toggle.innerHTML="<?php echo  LBL_TAG_SUBMIT ?>";