|
$variable = "Some text goes here, but when there are "quotation marks" in the text, it throws up an error";
The variable is declared in a script that I have no editing access to. Does anyone know how to remove the quotes from the variable after it has been passed to the script? Using the variable as stated above, is there a function I could use to do this? Something like: variable = function_name("Some text goes here, but when there are "quotation marks" in the text, it throws up an error");
I keep getting the "unexpected t string" error.
Please don't tell me I can use str_replace to replace the quotation marks. When they cause the error, they are already declared in the script, and I have no access to input a str_replace at the source (before it's imported with the quotes inside the variable).
|