[keycloak-dev] need angular js help!
Stian Thorgersen
stian at redhat.com
Wed Oct 8 13:17:12 EDT 2014
How about double encode it to get around the bug?:
module.filter('encodeUri', function($window) {
return function(shit) {
var shit = encodeURIComponent(encodeURIComponent(shit));
return shit;
};
});
----- Original Message -----
> From: "Bill Burke" <bburke at redhat.com>
> To: keycloak-dev at lists.jboss.org
> Sent: Wednesday, 8 October, 2014 6:14:22 PM
> Subject: [keycloak-dev] need angular js help!
>
> I can't figure out how to encode a link in a html page for angular js
>
> <td><a
> href="#/realms/{{realm.realm}}/applications/{{app.name |
> encodeUri}}">{{app.name}}</a></td>
>
>
> I wrote a filter to do this "encodeUri" that is getting invoked, but the
> link still is not encoded when displayed. ARG!!!!
>
> module.filter('encodeUri', function($window) {
> return function(str) {
> var str = encodeURIComponent(shit);
> return str;
> };
> });
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
More information about the keycloak-dev
mailing list