Skip to content

Commit

Permalink
only explode in 2 parts
Browse files Browse the repository at this point in the history
  • Loading branch information
attiks committed Dec 7, 2014
1 parent 7ff3e59 commit abb587a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Michelf/Markdown.php
Expand Up @@ -1705,7 +1705,7 @@ protected function doExtraAttributes($tag_name, $attr) {
} else if ($element{0} == '#') {
if ($id === false) $id = substr($element, 1);
} else if (strpos($element, '=') > 0) {
$parts = explode('=', $element);
$parts = explode('=', $element, 2);
$attributes[] = $parts[0] . '="' . $parts[1] . '"';
}
}
Expand Down

0 comments on commit abb587a

Please sign in to comment.