Content deleted Content added
undo radical change for now |
refine regular expression to eliminate internal DL elements |
||
Line 57:
//Alternative approach: skip all DD elements that have a sub DL element within
untagged_text = temp_DD_element.innerHTML.replace(/
untagged_text = untagged_text.replace(/(<([^>]+)>)/ig,""); // remove other HTML tags
unspaced_text = untagged_text.replace(/\s/ig, ""); // remove whitespaces
|