mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
committed by
GitHub
parent
02f500b9c2
commit
b639a8d183
@@ -1,8 +1,8 @@
|
||||
def filterScripTags(html)
|
||||
oldHtml = "";
|
||||
while (html != oldHtml)
|
||||
oldHtml = html;
|
||||
html = html.gsub(/<script[^>]*>.*<\/script>/m, "");
|
||||
def filter_script_tags(html)
|
||||
old_html = ""
|
||||
while (html != old_html)
|
||||
old_html = html
|
||||
html = html.gsub(/<script[^>]*>.*<\/script>/m, "")
|
||||
end
|
||||
return html;
|
||||
html
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user