Commit be7c6c11 authored by Laurent Montel's avatar Laurent Montel 😁

Add comment

parent fb1be093
......@@ -80,6 +80,7 @@ QString WebEnginePartHtmlWriter::removeJscripts(QString str)
//Remove string as <script src=http://.../>
const QRegularExpression regScript2(QStringLiteral("<script[^>]*/>"));
str.remove(regScript2);
//Multiline script
const QRegularExpression regScriptStart(QStringLiteral("<script[^>]*>"));
const QRegularExpression regScriptEnd(QStringLiteral("</script\\s*>"));
int indexStartScriptFound = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment