Remove all HTML

xiaoxiao2021-03-06  14

'The use of ASP here, of course, you can write regular expression in JS, relatively simple.

Function FilterHTML (Strtofilter) DIM Strtemp Strtemp = STRTOFILTER While Instr (1, Strtemp, "<") AND INSTR (1, Strtemp, ">") strTemp = Left (Strtemp, INSTR (1, strTemp, "<") - 1 ) & Right (strtemp, len (strTemp) -instr (1, strtemp, ">")) Wend filterHtml = Strtempend FunctionResponse.write FilterHTML (STR)

转载请注明原文地址:https://www.9cbs.com/read-47814.html

New Post(0)