Fixed image tag overflow.

This commit is contained in:
flash 2018-12-29 04:43:39 +01:00
parent 0fcd91ef48
commit 3e4a8504ad

View file

@ -12,6 +12,6 @@ final class ImageTag extends BBCodeSimpleTag
public function getReplacement(): string
{
return '<img src="$1" alt="$1">';
return '<a href="$1" target="_blank" rel="noreferrer noopener"><img src="$1" alt="$1" style="max-width:100%;max-height:100%;"></a>';
}
}