I'm trying to evaluate a PHP code using Java, so I need to replace all the "
with \"
in the code. The problem is that Java also has this escape character for "
in a String.
I was told to use \"
, but the result was this:
Doesanyoneknowhowtotypethis?OrsomewaytorunPHPinsidetheJVM?(I'mdoingatrickthatcomesdowntorunningontheterminalecho"codigo" | php
... It's working, but it has this problem with "
).
Thanks