I have a code that takes $_POST var. However, this var may sometimes include some ", therefore it makes the var end, and it's not complete, so my editor only sends a part of file. Is there any way how i can make " and ' being replaced before processed so it won't end my var?
Before you send it to your editor, run it through addslashes().
Variables in memory arent terminated with " marks. If you need to reference " in your code, you can try doing \" so for example
$test = "Hello \"world\"";
would be Hello "World"
<input type="text" name="some"
value="<?php echo htmlspecialchars($_POST['some'],ENT_QUOTES);?>"