Changeset 909 for trunk/modules


Ignore:
Timestamp:
10/20/07 19:30:54 (12 years ago)
Author:
wymsy
Message:

better fix for ticket #1086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/TransformInnerHTML.js

    r882 r909  
    4141/*05*/  new RegExp().compile(/(<\w+\s+(\w*="[^"]*"\s+)*)(checked|compact|declare|defer|disabled|ismap|multiple|no(href|resize|shade|wrap)|readonly|selected)([\s>])/gi),//expand singlet attributes 
    4242/*06*/  new RegExp().compile(/(="[^']*)'([^'"]*")/),//check quote nesting 
    43 /*07*/  new RegExp().compile(/&(?=[^<]*>)/g),//expand query ampersands 
     43/*07*/  new RegExp().compile(/&(?=(?!(#[0-9]{2,4};|[a-zA-Z0-9]{2,6};|\\x[0-9a-fA-F]{2};))[^<]*>)/g),//expand query ampersands not in html entities 
    4444/*08*/  new RegExp().compile(/<\s+/g),//strip tagstart whitespace 
    4545/*09*/  new RegExp().compile(/\s+(\/)?>/g),//trim whitespace 
     
    7777                replace(c[4], '<$1$2 />').//terminate singlet tags 
    7878                replace(c[6], '$1$2').//check quote nesting 
    79         //      replace(c[7], '&amp;').//expand query ampersands 
     79                replace(c[7], '&amp;').//expand query ampersands 
    8080                replace(c[8], '<').//strip tagstart whitespace 
    8181                replace(c[10], ' ');//trim extra whitespace 
Note: See TracChangeset for help on using the changeset viewer.