diff options
author | neoraider <devnull@localhost> | 2006-09-22 15:38:00 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-09-22 15:38:00 +0200 |
commit | 7538923358a21e3d857424ecb81c3dc61dc1446f (patch) | |
tree | 560ed039a26fd90debb520b087247c92e4cc2f14 | |
parent | 5c6d9191bd739854088a012acbad5ce5fe5eb58d (diff) | |
download | bbcode-7538923358a21e3d857424ecb81c3dc61dc1446f.tar bbcode-7538923358a21e3d857424ecb81c3dc61dc1446f.zip |
Alt-Attribut zum img-Tag hinzugef?gt.
-rw-r--r-- | code/bbcode.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/bbcode.inc.php b/code/bbcode.inc.php index d1cbe0b..2696948 100644 --- a/code/bbcode.inc.php +++ b/code/bbcode.inc.php @@ -16,7 +16,7 @@ $color = array('starttag' => '\[color=([A-Za-z]+|#(?:[\dA-Fa-f]{3}){1,2}?|rgb\((?:100%|\d?\d%),(?:100%|\d?\d%),(?:100%|\d?\d%)\)|rgb\((?:1?\d?\d|2(?:[0-4]\d|5[0-5])),(?:1?\d?\d|2(?:[0-4]\d|5[0-5])),(?:1?\d?\d|2(?:[0-4]\d|5[0-5]))\))\]', 'endtag' => '\[/color\]', 'starthtml' => '<span style="color:$1">', 'endhtml' => '</span>', 'children' => array(&$b, &$u, &$i, &$color, &$img, &$url1, &$url2)); - $img = array('starttag' => '\[img\]([^\[]*)\[/img\]', 'starthtml' => '<img src="$1" />'); + $img = array('starttag' => '\[img\]([^\[]*)\[/img\]', 'starthtml' => '<img src="$1" alt="" />'); $url1 = array('starttag' => '\[url\]([^\[]*)\[/url\]', 'starthtml' => '<a href="$1">$1</a>)'); $url2 = array('starttag' => '\[url=([^\]]*)\]', 'endtag' => '\[/url\]', 'starthtml' => '<a href="$1">', 'endhtml' => '</a>', |