I have this line of code and the \ is generating problems (at least in the highlighting of Sublime Text. How Can I escape this character?
text = text.replace(":\","<img src='images/Smilleys_08.png' class='smilley' />");
text = text.replace(":-\","<img src='images/Smilleys_08.png' class='smilley' />");
Also the same code needs to be in PHP and it goes like this
$tempText = str_replace(":\","<img src='images/Smilleys_08.png' class='smilley' />",$tempText);
$tempText = str_replace(":-\","<img src='images/Smilleys_08.png' class='smilley' />",$tempText);