Function CleanwordString (HTML) {
HTML = html.replace (/ /? span [^>] *> / gi, ""); // Remove All SPAN Tags
HTML = html.replace (/ w [^>] *) class = ([^ |>] *) ([^>] *) / GI, "<$ 1 $ 3"); // Remove Class Attributes
// html = html.replace (/ <(/ w [^>] *) style = "([^"] *) "([^>] *) / GI," <$ 1 $ 3 "); // Remove Style Attributes
HTML = html.replace (/ <(/ w [^>] *) lang = ([^ |>] *) ([^>] *) / Gi, "<$ 1 $ 3"); // Remove Lang Attributes
HTML = HTML.REPLACE (/ /? /? Xml [^>] *> / gi, ""); // Remove XML Elements and Declarations
HTML = html.replace (///? / w : [^>] *> / gi, ""); // Remove tags with xml namespace declarations:
HTML = html.replace (/ /, ""); // replace the
// Transform
to
Var Re = new regexp ("(^>] *>. *?) (/ p>)", "gi"); // DiffERENT BECAUSE OF A IE 5.0 Error
HTML = HTML.Replace (RE, "
// INSERTHTML (HTML);
Test.b.value = HTML
}
// ->
script>