| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function visit(\DOMAttr $att, Compiler $context) |
||
| 16 | { |
||
| 17 | $node = $att->ownerElement; |
||
| 18 | $pi = $context->createPrintNode(html_entity_decode($att->value)); |
||
| 19 | |||
| 20 | $node->parentNode->replaceChild($pi, $node); |
||
| 21 | |||
| 22 | $node->removeAttributeNode($att); |
||
| 23 | return Attribute::STOP_NODE; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |