Im trying to do this
$input = "<img src="HTML/images/user.png" alt="" />";
but it does not work out, i know im supposed to put a / before a " or something please help
Try this
$input = "<img src='HTML/images/user.png' alt='' />";
Or
$input = "<img src=\"HTML/images/user.png\" alt=\"\" />";
all you need to do is escape double quote. just like below.
\"HTML/images/user.png\" alt=\"\"
Note that you have use "
for PHP already.
You can either choose to use '
or \"
.
For example,
$input = "<img src='HTML/images/user.png' alt='' />";
$input = "<img src=\"HTML/images/user.png\" alt=\"\" />";
Try this
$input = "<img src='HTML/images/user.png' alt='' />";