From 1e69a0958527d5c8c9fc334a0b945bb12e3401ce Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Thu, 5 Jun 2008 22:06:54 -0400 Subject: [PATCH] Clarified documentation comment for encodeAttribute. --- markdown.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/markdown.php b/markdown.php index 4b072fb..b6af91b 100644 --- a/markdown.php +++ b/markdown.php @@ -1242,7 +1242,8 @@ class Markdown_Parser { function encodeAttribute($text) { # - # Encode text for a double-quoted HTML attribute. + # Encode text for a double-quoted HTML attribute. This function + # is *not* suitable for attributes enclosed in single quotes. # $text = $this->encodeAmpsAndAngles($text); $text = str_replace('"', '"', $text);