ngSanitize Removes Relative IMG

Why does ngSanitize remove image sources with relative path, like <img src="/img/lol.jpg> from html text, but it does not touch images with absolute path like <img src="http://site.com/img/lol.jpg">?

The image URL whitelist regexp is /^\s*((https?|ftp|file|blob):|data:image\/)/ which does not match relative URLs.

You can overwrite the white list as per the compile provider docs.

app.config(function($compileProvider) {
    $compileProvider.imgSrcSanitizationWhitelist(<your regexp here>);
});