You are here

function Markdown_Parser::encodeAttribute in Markdown 5

Same name and namespace in other branches
  1. 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

... See full list

File

./markdown.php, line 1382

Class

Markdown_Parser

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;
}