A fork of potaka/bbcode to handle future maintenance
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
387B

  1. <?php
  2. namespace Knockout\BbCode\Tag;
  3. /**
  4. * Description of Italic
  5. *
  6. * @author po_taka <angel.koilov@gmail.com>
  7. */
  8. class Italic extends SimpleTag
  9. {
  10. public function getCloseHtmlTag() : string
  11. {
  12. return '</i>';
  13. }
  14. public function getOpenHtmlTag() : string
  15. {
  16. return '<i>';
  17. }
  18. public function getTag(): string
  19. {
  20. return 'i';
  21. }
  22. }