Content deleted Content added
don't remove other HTML tags |
internal DL tags aren't being detected? |
||
Line 27:
var top_DD_node;
var temp_DD_text;
var untagged_text;
var unspaced_text;
var byte_count = 0;
var num_child_nodes = 0;
Line 57 ⟶ 59:
//Alternative approach: skip all DD elements that have a sub DL element within
untagged_text = unspaced_text.replace(/<dl>.*<\/dl>/ig, ""); // remove inner DL's
// untagged_text = untagged_text.replace(/(<([^>]+)>)/ig,""); // remove other HTML tags
▲ unspaced_text = untagged_text.replace(/\s/ig, ""); // remove whitespaces
byte_count = unspaced_text.length; // remove whitespaces
if (byte_count < 1) { continue; }
|