A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- <?php
-
- namespace App\BbCode\Tag;
-
- use Knockout\BbCode\Tag\TagInterface;
- use Knockout\BbCode\Tokenizer\Tag as TokenTag;
-
- class Text implements TagInterface
- {
-
- public function format(TokenTag $tokenTag) : string
- {
- $formattedString = "{$tokenTag->getText()}";
- return $formattedString;
- }
-
- public function getName(): string
- {
- return '';
- }
-
- public function getOriginalText(TokenTag $tokenTag): string
- {
- // there is nothing special
- return $this->format($tokenTag);
- }
- }
|