skip to Main Content

Addslashes not escaping properly – PHP

Not quite sure what I'm doing wrong. I have $description = addslashes($description); echo "<option onclick='updateTotals(`$urlOptions`,`$option_title`,`$description`)' value='".$description."' selected> ".$description."</option>"; An example of the text I'm trying to escape is 422458 - 120' Boom if NOZZLE BODIES is CR II single nozzle…

VIEW QUESTION
Back To Top
Search