tags:

views:

36

answers:

2

Hi all,

in the following code how to delete \ slashes using PHP and HTML

<input alt#\"\" src=\"/ckfinder/userfiles/files/DSC_0017.JPG\" style=\"width: 400px; height: 266px\" type=\"image\" /></p>

is this possible and if yes how?

Thanks in advance for your valuable support

+5  A: 

Use stripslashes - and please don't forget to mark my answer as correct ;)

fabrik
A: 

replace \ with empty string . sample code: src=src.replace('\','');

PRS
You need to use \\ in place of \
codaddict