Commit 0a3857d1 authored by M.Nowocyn's avatar M.Nowocyn

Fixes IMG issue. close #17

parent feb6ea51
......@@ -116,12 +116,12 @@ class BBCode extends Integer implements iBBCode
);
}
public static function images (array $matches): string
public static function image (array $matches): string
{
$return = '';
$url = trim($matches[1]);
if (Parser::checkURL($url)) {
$return = '<img src="' . $url . '" alt="user-provided image" class="bbCode_img">'; // ToDo: Update alt="" text
$return = '<img src="' . $url . '" alt="user-provided image" class="bbCode_img img-fluid" style="max-width:100%">'; // ToDo: Update alt="" text
}
return $return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment