3 namespace League\HTMLToMarkdown\Converter;
5 use League\HTMLToMarkdown\Configuration;
6 use League\HTMLToMarkdown\ConfigurationAwareInterface;
7 use League\HTMLToMarkdown\ElementInterface;
9 class DivConverter implements ConverterInterface, ConfigurationAwareInterface
17 * @param Configuration $config
19 public function setConfig(Configuration $config)
21 $this->config = $config;
25 * @param ElementInterface $element
29 public function convert(ElementInterface $element)
31 if ($this->config->getOption('strip_tags', false)) {
32 return $element->getValue() . "\n\n";
35 return html_entity_decode($element->getChildrenAsString());
41 public function getSupportedTags()