@nextcloud/vue
Version:
Nextcloud vue components
16 lines (15 loc) • 468 B
JavaScript
;
const linkifyStr = require("linkify-string");
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
const linkifyStr__default = /* @__PURE__ */ _interopDefault(linkifyStr);
const Linkify = (text) => {
return linkifyStr__default.default(text, {
defaultProtocol: "https",
target: "_blank",
className: "external linkified",
attributes: {
rel: "nofollow noopener noreferrer"
}
});
};
exports.Linkify = Linkify;