| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | protected function Render($items, $mustache_template, $clean_tags = true) |
||
| 13 | { |
||
| 14 | if ($clean_tags) { |
||
| 15 | $mustache_template = $this->TagCleaner($mustache_template); |
||
| 16 | } |
||
| 17 | |||
| 18 | $m = new \Mustache_Engine(array('escape' => function($value) { |
||
| 19 | if (str_replace('*[[DONOTESCAPE]]*', '', $value) != $value) { |
||
| 20 | return str_replace('*[[DONOTESCAPE]]*', '', $value); |
||
| 21 | } |
||
| 22 | return htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); |
||
| 23 | })); |
||
| 24 | return $m->render($mustache_template, $items); |
||
| 25 | } |
||
| 26 | |||
| 40 |