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