- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
var titleAlt = String(dbField("title").value);
if (titleAlt.toLowerCase().indexOf("<b>") != -1) { titleAlt = titleAlt.replace(/<b>/gi, "").replace(/<\/b>/gi, ""); }
if (titleAlt.toLowerCase().indexOf("<i>") != -1) { titleAlt = titleAlt.replace(/<i>/gi, "").replace(/<\/i>/gi, ""); }
if (titleAlt.toLowerCase().indexOf("<small>") != -1) { titleAlt = titleAlt.replace(/<small>/gi, "").replace(/<\/small>/gi, ""); }
if (titleAlt.toLowerCase().indexOf("<br>") != -1) { titleAlt = titleAlt.replace(/<br>/gi, ""); }
if (titleAlt.toLowerCase().indexOf("<p>") != -1) { titleAlt = titleAlt.replace(/<p>/gi, "").replace(/<\/p>/gi, ""); }
f = 0;
while (f != -1) {
f = titleAlt.indexOf("<img ");
if (f == -1) { f = titleAlt.indexOf("< img "); }
if (f == -1) { f = titleAlt.indexOf("< img "); }
if (f == -1) { f = titleAlt.indexOf("<IMG "); }
if (f == -1) { f = titleAlt.indexOf("< IMG "); }
if (f == -1) { f = titleAlt.indexOf("< IMG "); }
if (f != -1) {
t = -1;
for (i = f; i < titleAlt.length; i++) {
if (titleAlt.substr(i, 1) == ">") { t = i; i = titleAlt.length; }
}
if (t != -1) {
ttl = titleAlt;
titleAlt = ttl.substring(0, f) + ttl.substring(t + 1, titleAlt.length);
}
}
}