mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Added missing phpdoc
This commit is contained in:
@ -16,6 +16,13 @@ namespace yii\helpers\base;
|
||||
*/
|
||||
class HtmlPurifier
|
||||
{
|
||||
/**
|
||||
* Passes markup through HTMLPurifier making it safe to output to end user
|
||||
*
|
||||
* @param string $content
|
||||
* @param array|null $config
|
||||
* @return string
|
||||
*/
|
||||
public static function process($content, $config = null)
|
||||
{
|
||||
$purifier=\HTMLPurifier::instance($config);
|
||||
|
@ -37,6 +37,13 @@ class Markdown
|
||||
*/
|
||||
protected static $markdown;
|
||||
|
||||
/**
|
||||
* Converts markdown into HTML
|
||||
*
|
||||
* @param string $content
|
||||
* @param array $config
|
||||
* @return string
|
||||
*/
|
||||
public static function process($content, $config = array())
|
||||
{
|
||||
if (static::$markdown === null) {
|
||||
|
Reference in New Issue
Block a user