diff --git a/js/angular.cloudinary.js b/js/angular.cloudinary.js
index 69af25eb..07d5c110 100644
--- a/js/angular.cloudinary.js
+++ b/js/angular.cloudinary.js
@@ -20,7 +20,7 @@
};
- ['Src', 'Srcset', 'Href'].forEach(function(attrName) {
+ ['Src', 'Srcset', 'Href', 'Content'].forEach(function(attrName) {
var normalized = 'cl' + attrName;
attrName = attrName.toLowerCase();
angularModule.directive(normalized, ['$sniffer', function($sniffer) {
@@ -38,7 +38,7 @@
}
attr.$observe(normalized, function(value) {
- if (!value)
+ if (!value || !value.toString().match('/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/'))
return;
var attributes = {};
diff --git a/samples/photo_album/app/index.html b/samples/photo_album/app/index.html
index 99989e40..badec5d6 100644
--- a/samples/photo_album/app/index.html
+++ b/samples/photo_album/app/index.html
@@ -7,6 +7,9 @@
+
+
+