Fixed improper Markdown escaping for some tooltips
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user