2c2
< // flatten_ml.php
---
> // tags_within.php
6c6
< // Convert HTML or XML to Text
---
> // Report on tags within tag
9,24d8
< $esuff = "";
< $start = "<";
< $end = "";
< if (isset($_GET['start'])) {
< $start = urldecode($_GET['start']);
< } else if (isset($_POST['start'])) {
< $start = urldecode($_POST['start']);
< }
< if (isset($_GET['end'])) {
< $end = urldecode($_GET['end']);
< } else if (isset($_POST['end'])) {
< $end = urldecode($_POST['end']);
< } else if (strlen($start) > 1) {
< $end = substr($start,1);
< $start = substr($start, 0, 1);
< }
27c11
< global $fsev, $start, $end;
---
> global $fsev;
31,32d14
< var wut = new Array();
< var wutname = new Array();
54,64d35
< function expand(onein, twoin) {
< var outtwoin = "";
<
< var div = document.getElementById("dend");
< div.innerHTML = twoin;
< outtwoin = "";
<
<
< return onein + " " + outtwoin;
< }
<
140,141d110
< wutname[wutname.length] = f.name;
< wut[wut.length] = window.open("",f.name,"width=500, height=80");
156,157c125
< var xfcont=evt.target.result,ik,eoc,eik,tcont="";
< var thoselines = xfcont.split(String.fromCharCode(10));
---
> var xfcont=evt.target.result;
159,179c127,136
< var findwordscnt = 0, cfinds, rconts, cfind = "0", huhv, pref="", ihuh, ht;
< var cstart="' . substr($start,0,1) . '", cend="' . str_replace("{", "}", str_replace("<", ">", str_replace("[", "]", str_replace("(", ")", substr($start,0,1))))) . '";
< var fws, fwsc="", rcont = " ", bit, outtwoin = "", oc = xfcont.split(cstart);
<
< var div = document.createElement("div");
< div.innerHTML = xfcont;
< if (xfcont.toLowerCase().indexOf("= 0) {
< for (ik=0; ik 1) {
< for (eik=1; eik" + tcont || "" + "");
< wut[eval(wut.length - 1)].document.title = wutname[eval(wut.length - 1)] + ".txt";
< } else if (xfcont.toLowerCase().indexOf("html>") >= 1) {
< wut[eval(wut.length - 1)].document.write(" ");
< wut[eval(wut.length - 1)].document.title = wutname[eval(wut.length - 1)] + ".txt";
---
> var findwordscnt = 0, cfinds, rconts, cfind = "0", huhv, pref="", ihuh, ht;
> var fws, fwsc="", rcont = " ", bit;
> /' . '/var thoselines = xfcont.split(String.fromCharCode(10));
> var ourwords, ourwordcnt = 0;
> var endtt = document.getElementById("start").value.substring(0,1) + document.getElementById("ctag").value;
> var endd = document.getElementById("start").value.substring(0,1).replace("<",">").replace("[","]").replace("{","}").replace("(",")");
> var ourat = document.getElementById("attrib").value;
> thoselines = xfcont.split(document.getElementById("start").value.substring(0,1) + document.getElementById("ptag").value);
> if (ourat == "") {
> cfind = eval(thoselines.length - 1);
181,185c138,142
< thoselines = xfcont.replace(//g, ">").split(String.fromCharCode(10));
< for (var jjjjq=0; jjjjq