Copie de Tumblr sur Shaarli
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.

HardBreakConverter.php 450 B

3 years ago
1234567891011121314151617181920212223242526
  1. <?php
  2. namespace League\HTMLToMarkdown\Converter;
  3. use League\HTMLToMarkdown\ElementInterface;
  4. class HardBreakConverter implements ConverterInterface
  5. {
  6. /**
  7. * @param ElementInterface $element
  8. *
  9. * @return string
  10. */
  11. public function convert(ElementInterface $element)
  12. {
  13. return " \n";
  14. }
  15. /**
  16. * @return string[]
  17. */
  18. public function getSupportedTags()
  19. {
  20. return array('br');
  21. }
  22. }