diff --git a/public/js/extra.js b/public/js/extra.js
index 2930ec2..3ad78c9 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -207,6 +207,10 @@ function postProcess(code) {
     result.find("iframe").replaceWith(function () {
         return "<noiframe>" + $(this).html() + "</noiframe>"
     });
+    //link should open in new window or tab
+    result.find('a:not([target])').attr('target', '_blank');
+    return result;
+}
         }
         }
 }