You are here

protected function Markdown::encodeAttribute in Markdown 7

* Encode text for a double-quoted HTML attribute. This function * is *not* suitable for attributes enclosed in single quotes. *

Parameters

string $text: * @return string

14 calls to Markdown::encodeAttribute()
Markdown::encodeURLAttribute in includes/Markdown.php
* Encode text for a double-quoted HTML attribute containing a URL, * applying the URL filter if set. Also generates the textual * representation for the URL (removing mailto: or tel:) storing it in $text. * This function is *not* suitable for…
Markdown::_doAnchors_inline_callback in includes/Markdown.php
* Callback method to parse inline anchors *
Markdown::_doAnchors_reference_callback in includes/Markdown.php
* Callback method to parse referenced anchors *
Markdown::_doImages_inline_callback in includes/Markdown.php
* Callback to parse inline image tags *
Markdown::_doImages_reference_callback in includes/Markdown.php
* Callback to parse references image tags *

... See full list

File

includes/Markdown.php, line 1552

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function encodeAttribute($text) {
  $text = $this
    ->encodeAmpsAndAngles($text);
  $text = str_replace('"', '"', $text);
  return $text;
}