Django

Code

Ticket #6100: 6100.diff

File 6100.diff, 0.6 kB (added by oggie_rob, 1 year ago)

one-liner fix

  • django/contrib/admin/media/js/admin/RelatedObjectLookups.js

    old new  
    33 
    44function html_unescape(text) { 
    55    // Unescape a string that was escaped using django.utils.html.escape. 
     6    text = "" + text; // coerce from integer, probably 
    67    text = text.replace(/&lt;/g, '<'); 
    78    text = text.replace(/&gt;/g, '>'); 
    89    text = text.replace(/&quot;/g, '"');