Clarified documentation comment for encodeAttribute.

This commit is contained in:
Michel Fortin 2008-06-05 22:06:54 -04:00
parent 49883b131c
commit 1e69a09585

View file

@ -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);