This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / ask help: how to create a regulationexpression to validate input to strip some HTML tags like <script><applet>, thanks in advanceI have created regulationexpression ^[^<]*|[[^<]*<\s*(?!applet|body)]+$, but it doesn't work, any string with < can not pass.
-simon0908(红莓花儿开);
2008-10-22
{127}
(#4785551@0)
-
"<" is "\<"
-googlebot(bot);
2008-10-22
(#4785563@0)
-
Don't understand your pattern. You can try following pattern: <(script|applet|body)>.*<\/\1>
-deep_blue(BLUE);
2008-10-22
(#4785825@0)