function Markdown_Parser::encodeAttribute in Markdown 6
Same name and namespace in other branches
- 5 markdown.php \Markdown_Parser::encodeAttribute()
12 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 - MarkdownExtra_Parser::_doAnchors_inline_callback in ./
markdown.php - MarkdownExtra_Parser::_doAnchors_reference_callback in ./
markdown.php
File
- ./
markdown.php, line 1426
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;
}