Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function Purify($content, $domain = null, $purify = false) { |
||
38 | |||
39 | $configArray = Yaml::parse(file_get_contents($this->pathToYml)); |
||
40 | |||
41 | if (true === $purify || true === $configArray['external_link']['purify']) |
||
42 | { |
||
43 | $content = ExternalLinkFilter::removeWebLinks($content, $domain); |
||
44 | } |
||
45 | |||
46 | return $content; |
||
47 | } |
||
48 | |||
50 |