/** * Automatically adds <p> tags to content with line breaks * * Expected params: * - value string - to process * - allowedTags string - comma delimited list of tags to allow, e.g. a[href],b,p * - linkUrls bool - whether or not links should be auto converted to a tags. * * @return string */ public function autoParagraph() { $str = $this->getParameter('value'); $linkUrls = null === $this->getParameter('linkUrls') ? true : \StringUtils::strToBool($this->getParameter('linkUrls')); return $this->inputClean->autoParagraph($str, $this->getParameter('allowedTags'), $linkUrls); }