You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Set a list of custom attributes to be treated as URL (i.e to use the host & protocol filter)
59
+
$whitelist->treatAttributesAsUrl(['data-url']);
60
+
61
+
// Set a list of custom attributes to be treated as HTML Boolean (Not true/false ) (i.e their values would be set to blank or the name of the attribute itself)
$sanitizedHTML = $htmlsanitizer->sanitize('<ahref="//google.com"data-download="">Google</a> <ahref="https://bing.com"data-url="https://bing.com">My URL would be removed</a>');
0 commit comments