Fixed improper Markdown escaping for some tooltips

This commit is contained in:
Frederic Guillot
2016-04-29 18:43:57 -04:00
parent a34f83fb30
commit 9fa8f63d25
11 changed files with 30 additions and 9 deletions

View File

@@ -38,6 +38,18 @@ class TextHelper extends Base
return $parser->text($text);
}
/**
* Escape Markdown text that need to be stored in HTML attribute
*
* @access public
* @param string $text
* @return mixed
*/
public function markdownAttribute($text)
{
return htmlentities($this->markdown($text), ENT_QUOTES, 'UTF-8');
}
/**
* Format a file size
*