| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function TagCleaner($content) |
||
| 28 | { |
||
| 29 | //kills all xml tags within curly mustache brackets |
||
| 30 | //this is necessary, as word might produce unnecesary xml tage inbetween curly backets. |
||
| 31 | return preg_replace_callback( |
||
| 32 | '/{{(.*?)}}/', |
||
| 33 | function($match) { |
||
| 34 | return strip_tags($match[0]); |
||
| 35 | }, |
||
| 36 | $content |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |