Skip to content

[fix]: php code sometimes gets mangled #43

@dannydulai

Description

@dannydulai
<img src='<?php echo $foo["bar"] ?>'>
<img src='<?php echo isset($foo['bar']) ? $foo['bar'] : ""; ?>'>

gets turned into:

<img src="<?php echo $foo[&quot;bar&quot;] ?>">
<img src="<?php echo isset($foo[" bar'])="" ?="" $foo['bar']="" :="" "";="">'>

I also have:

        directives: [
            { name: '?php', start: '<', end: '>' }
        ]

in my posthtml options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions