diff --git a/js/filters.js b/js/filters.js
index 9cefa52..a6f7271 100644
--- a/js/filters.js
+++ b/js/filters.js
@@ -117,6 +117,15 @@ weechat.filter('DOMfilter', ['$filter', '$sce', function($filter, $sce) {
};
}]);
+weechat.filter('linksForCordova', ['$sce', function($sce) {
+ return function (text) {
+ // Cordova: need to use window.open instead of href
+ // XXX TODO this needs to be improved
+ text = text.replace(/