TbHtml::i PHP Method

i() public static method

Generates italic text.
public static i ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
return string the generated text.
    public static function i($text, $htmlOptions = array())
    {
        return self::tag('em', $htmlOptions, $text);
    }

Usage Example

Exemplo n.º 1
0
 public function testItalic()
 {
     $I = $this->codeGuy;
     $html = TbHtml::i('Italic text');
     $em = $I->createNode($html, 'em');
     $I->seeNodeText($em, 'Italic text');
 }
All Usage Examples Of TbHtml::i
TbHtml