Adds HTML paragraph.

@param string $text

@return $this
325549
public function addParagraph($text)
    {
        $this->content .= isset($this->app)
            ? $this->app->getTag('p', $text)
            : '<p>'.htmlspecialchars($text).'</p>';

        return $this;
    }
487534
public function send($text = null)
    {
        if ($text) {
            $this->withText($text);
        }

        $this->response = $this->client->sendMessage($this);

        return $this;
    }
863490
private function tag_text($text)
	{
		if($this->current_tag instanceof Node_Container_Tag)
		{
			$accepted_children = $this->bbcodes[$this->current_tag->tag()]->accepted_children();

			if(!empty($accepted_children) && !in_array('text_node', $accepted_children))
				return;
		}

		$this->current_tag->add_child(new Node_Text($text));
	}
813550
protected function _addMetatag(&$text)
    {
        if (!empty($this->_token_value))
        {
            $string = '<meta content="'.$this->_token_value.'" name="csrf-token" />';
            if (stripos($text, $string) === false) {
                $text = $string.$text;
            }
        }

        return $this;
    }
196790
public function cData($text)
    {
        $this->writer->writeCData($text);
        $this->writer->text("\n");
        return $this;
    }
162442
public function setParagraph($text)
    {
        $this->paragraph = new Paragraph();
        $this->paragraph->entity->setEntityName('paragraph');
        $this->paragraph->textContent->push($text);

        return $this;
    }
1067513
public function msgText($text)
    {
        $this->isHTML(false);
        $text = self::html2text($text, true);
        $text = self::normalizeBreaks($text);
        $this->Body = $text;
    }
1314793
public static function add(string $text, string $tag): string
    {
        return self::wrap($text, $tag);
    }
1373631
protected function see($text, $tag = 'body')
    {
        $this->assertContains($text, $this->getTextByTag($tag));

        return $this;
    }
1009744
public function setText(string $text)
    {
        if (strlen($text) == 0) {
            throw new LengthException("Empty token content");
        }
        $this->text = $text;
        return $this;
    }
959586
public function send($text = null)
    {
        if ($text) {
            $this->setText($text);
        }

        $this->client->sendMessage($this);

        return $this;
    }
683955
public function makeHtml($text)
    {
        $this->_footnotes = array();
        $this->_definitions = array();
        $this->_holders = array();
        $this->_uniqid = md5(uniqid());
        $this->_id = 0;
        usort($this->blockParsers, function ($a, $b) {
            return $a[1] < $b[1] ? -1 : 1;
        });
        foreach ($this->blockParsers as $parser) {
            list ($name) = $parser;
            if (isset($parser[2])) {
                $this->_parsers[$name] = $parser[2];
            } else {
                $this->_parsers[$name] = array($this, 'parseBlock' . ucfirst($name));
            }
        }
        $text = $this->initText($text);
        $html = $this->parse($text); 
        $html = $this->makeFootnotes($html);
        $html = $this->optimizeLines($html);
        return $this->call('makeHtml', $html);
    }
892358
public function setHeader($text, $tagName = 'h1')
    {
        $this->header = new Element($tagName);
        $this->header->entity->setEntityName('header');
        $this->header->textContent->push($text);

        return $this;
    }
454880
public function filter(&$text)
    {
        if ($this->getWrapper() && strpos($text, '<ktml:template:wrapper>') !== false)
        {
            $text = sprintf($this->getWrapper(), $text);
            $text = str_replace('<ktml:template:wrapper>', '', $text);
        }

        return $this;
    }
1151319
public function setText($text = null)
    {
        $text = trim($text);
        $this->text = 0 < strlen($text) ? $text : null;

        return $this;
    }
238397
public function addText($text) {
      if (is_string($text))
          $text = new BaMLText($text);
      if (!($text instanceof BaMLText)) 
          throw new \CatapultApiException("You can only add type BaMLAttribute or array..");
      
      $this->text = $this->text . $text;
    }
1289862
public function addNewContent($text, $renderer)
    {
        $sortorder = $this->getContents()->count();

        $newContent = new Content;
        $newContent->setContent($text);
        $newContent->setRenderer($renderer);
        $newContent->generatePermid();
        $newContent->setSortorder(++$sortorder);

        $newContent->setSection($this);
        $this->addContent($newContent);

        return $newContent;
    }