Prevent PHP Script From Getting Encoded

I am trying to use filemtime to avoid caching for my custom JS & CSS files as shown below:

<link rel="stylesheet" type="text/css" href="css/style.css?v=<?php echo filemtime('css/style.css');?>">

But, on saving the file, the PHP script gets converted to this:

<link rel="stylesheet" type="text/css" href="css/style.css?v=%3C%3Fphp+echo+filemtime%28%27css%2Fstyle.css%27%29%3B%3F%3E">

Is there a way to prevent this encoding and allow inline PHP script?
I know caching can be managed on the server end, but this is just an example and using inline PHP with HTML is basically what the requirement here is.

Bump @patrick

This has been fixed in Wappler 3.7.2

1 Like

This topic was automatically closed after 46 hours. New replies are no longer allowed.