23 lines
393 B
Plaintext
23 lines
393 B
Plaintext
<%
|
|
' stripHTML vers 1 - VBScript
|
|
|
|
function stripHTML(txt)
|
|
set Reg = new RegExp
|
|
Reg.pattern = "[<][^>]*[>]"
|
|
Reg.IgnoreCase = true
|
|
Reg.Global = true
|
|
stripHTML = Reg.Replace(txt,"")
|
|
end function
|
|
%>
|
|
|
|
<%
|
|
// stripHTML vers 1 - Jscript
|
|
|
|
function stripHTML(string) {
|
|
var strip = new RegExp();
|
|
strip = /[<][^>]*[>]/gi;
|
|
return string.replace(strip, "");
|
|
}
|
|
|
|
%>
|