Changeset 358
- Timestamp:
- 09/28/05 20:08:55 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/GetHtml/get-html.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/GetHtml/get-html.js
r356 r358 1 /**1 /** 2 2 * Based on XML_Utility functions submitted by troels_kn. 3 3 * credit also to adios, who helped with reg exps: … … 31 31 /*00*/ new RegExp().compile(/<\s*\/?([^\s\/>]+)[\s*\/>]/gi),//lowercase tags 32 32 /*01*/ new RegExp().compile(/(\S*\s*=\s*)?_moz[^=>]*(=\s*[^>]*)?/gi),//strip _moz attributes 33 /*02*/ new RegExp().compile(/\s*=\s*(([^'"][^ \/>\s]*)([\s\/>])|"([^"]+)"|'([^']+)')/g),// find attributes33 /*02*/ new RegExp().compile(/\s*=\s*(([^'"][^>\s]*)([>\s])|"([^"]+)"|'([^']+)')/g),// find attributes 34 34 /*03*/ new RegExp().compile(/\/>/g),//strip singlet terminators 35 35 /*04*/ new RegExp().compile(/<(br|hr|img|input|link|meta|param|embed)([^>]*)>/g),//terminate singlet tags
