Changeset 910 for trunk


Ignore:
Timestamp:
10/22/07 15:31:04 (12 years ago)
Author:
wymsy
Message:

correct regexp 7 for unicode html entities (ticket #1086)

File:
1 edited

Legend:

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

    r909 r910  
    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(/&(?=(?!(#[0-9]{2,4};|[a-zA-Z0-9]{2,6};|\\x[0-9a-fA-F]{2};))[^<]*>)/g),//expand query ampersands not in html entities 
     43/*07*/  new RegExp().compile(/&(?=(?!(#[0-9]{2,5};|[a-zA-Z0-9]{2,6};|#x[0-9a-fA-F]{2,4};))[^<]*>)/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 
Note: See TracChangeset for help on using the changeset viewer.