javascript - str_replace inline script code from html in php not working -


i have html page stored in mysql database. html database , try replace of inline javascript code html content. tried using str_replace() not replace inline javascript code. can replace other html content divs not inline javascript code.

how can find , replace inline javascript code?

php should seeing entire html page big string, in theory, should able alter js , html alike. possible string still has slashes, , str_replace can't find search criteria due slashes?

try printing entirety of string screen make sure, , if still have slashes, use stripslashes($string) call rid of them.


Comments