diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 9cf4c77..613ffe5 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -864,6 +864,13 @@ protected function _doImages_reference_callback($matches) { if (isset($this->urls[$link_id])) { $url = $this->encodeURLAttribute($this->urls[$link_id]); $result = "\"$alt_text\"";titles[$link_id])) { $title = $this->titles[$link_id]; $title = $this->encodeAttribute($title); @@ -893,6 +900,13 @@ protected function _doImages_inline_callback($matches) { $alt_text = $this->encodeAttribute($alt_text); $url = $this->encodeURLAttribute($url); $result = "\"$alt_text\"";encodeAttribute($title); $result .= " title=\"$title\""; // $title already quoted diff --git a/Michelf/MarkdownExtra.php b/Michelf/MarkdownExtra.php index 462adab..7868b5f 100644 --- a/Michelf/MarkdownExtra.php +++ b/Michelf/MarkdownExtra.php @@ -1030,6 +1030,13 @@ protected function _doImages_reference_callback($matches) { if (isset($this->urls[$link_id])) { $url = $this->encodeURLAttribute($this->urls[$link_id]); $result = "\"$alt_text\"";titles[$link_id])) { $title = $this->titles[$link_id]; $title = $this->encodeAttribute($title); @@ -1064,6 +1071,13 @@ protected function _doImages_inline_callback($matches) { $alt_text = $this->encodeAttribute($alt_text); $url = $this->encodeURLAttribute($url); $result = "\"$alt_text\"";encodeAttribute($title); $result .= " title=\"$title\""; // $title already quoted