Skip to content

HTML with PHP breaks by string containing ">" #609

@sperlis

Description

@sperlis

I don't know if there is an intention to support this, but hopefully there is.
I have this code:

<html>
  <body>
    <?php echo "<br>"; ?>
  </body>
</html>

The <?php node is processed as an HTML comment but it's only:

<?php echo "<br>

Followed by a text node:

"; ?>\n  

Would it be possible to fix this so the "comment" continues to the closing ?> tag?

Thanks!

Metadata

Metadata

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