mirror of
https://github.com/moparisthebest/mail
synced 2025-02-16 23:20:09 -05:00
Make links in html clickable
This commit is contained in:
parent
e6de5366c9
commit
b02df18347
@ -344,7 +344,9 @@ define(function(require) {
|
||||
// wrap in html doc with scrollable html tag, since chrome apps does not scroll by default
|
||||
var prefix = '<!DOCTYPE html><html style="overflow-y: auto"><head></head><body>';
|
||||
var suffix = '</body></html>';
|
||||
scope.html = $sce.trustAsHtml(prefix + value + suffix);
|
||||
// open links in new window, otherwise the sandbox with not open them
|
||||
var clickableHtml = value.replace(/<a /g, '<a target="_blank" ');
|
||||
scope.html = $sce.trustAsHtml(prefix + clickableHtml + suffix);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user