src/AutoMeta/AutoMeta.php
public function setKeywords($keywords)
    {

        if (!is_array($keywords)):
            $keywords = explode(', ', $this->keywords);
        endif;

        // clean keywords
        $keywords = array_map('strip_tags', $keywords);

        // store keywords
        $this->keywords = $keywords;

        return $this;
    }
public function setKeywords($keywords)
    {

        if (!is_array($keywords)):
            $keywords = explode(', ', $this->keywords);
        endif;

        // clean keywords
        $keywords = array_map('strip_tags', $keywords);

        // store keywords
        $this->keywords = $keywords;

        return $this;
    }
public function setKeywords ( $ keywords ) { if ( ! is_array ( $ keywords ) ) : $ keywords = explode ( ', ' , $ this -> keywords ) ; endif ; // clean keywords $ keywords = array_map ( 'strip_tags' , $ keywords ) ; // store keywords $ this -> keywords = $ keywords ; return $ this ; }
Sets the list of keywords, you can send an array or string separated with commas
also clears the previously set keywords

@param string|array $keywords

@return MetaTagsContract
Sets the list of keywords you can send an array or string separated with commas also clears the previously set keywords