Merge pull request #222 from shikorism/fix/218

ユーザー入力テキストをLinkifyする時に target="_blank" rel="noopener" を付与する
This commit is contained in:
shibafu 2019-06-24 22:01:13 +09:00 committed by GitHub
commit 6d4f6e47a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class Formatter
*/ */
public function linkify($text) public function linkify($text)
{ {
return $this->linkify->processUrls($text); return $this->linkify->processUrls($text, ['attr' => ['target' => '_blank', 'rel' => 'noopener']]);
} }
/** /**