You are not logged in.
Pages: 1
Hi all,
I find a ticket from Adamj which concerns PreserveScripts plugin :
php can appear in html tags like this:
<input value="<?php print $foo;?>">
if u paste this into code view and then toggle html/ code - it comes back as:
<input src="/xinha-nightly/plugins/PreserveScripts/php.png" id="PreserveScripts?_1" value="<img title=" />">
I would like to know if someone find a solution, because i've the same problem.
Thanks all !
Offline
I've fond a solution, edit the file PreserveScripts.js located in plugins directory and change this line:
html = html.replace(/\n?<\?(php)?(\s|[^\s])*?\?>\n?/ig,
with this:
html = html.replace(/\n?<\?(=)|(php)?(\s|[^\s])*?\?>\n?/ig,
the problem was that the original code doesn't consider the tag <?=
that works for me!
ciao
Offline
Hi DocnetSnap,
Thanks for your answer !
Well, i tested your code and i've "another" problem. I type this in source :
<input value="<?php print $foo;?>">
And it returns me this
<input value="<?php print $foo;?>">
I think your code is close to the key, but not yet.
Thank you !
Offline
Up.. ?
Offline
I've got the same problem with characters being rewritten, but usually it's the carrots that are rewritten, quotes too. Any ideas? Escape characters... config change?
Offline
Pages: 1