function Markdown_Parser::encodeAttribute in Markdown 5
Same name and namespace in other branches
- 6 markdown.php \Markdown_Parser::encodeAttribute()
8 calls to Markdown_Parser::encodeAttribute()
- MarkdownExtra_Parser::appendFootnotes in ./
markdown.php - MarkdownExtra_Parser::_appendFootnotes_callback in ./
markdown.php - MarkdownExtra_Parser::_doAbbreviations_callback in ./
markdown.php - Markdown_Parser::_doAnchors_inline_callback in ./
markdown.php - Markdown_Parser::_doAnchors_reference_callback in ./
markdown.php
File
- ./
markdown.php, line 1382
Class
Code
function encodeAttribute($text) {
#
# 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);
return $text;
}