I am using XSLT to transform a XML into a html/php file. In this XSLT I replace some tags by php code and now I have to pass attribute values into that php code. My problem
Just use:
$string = str_replace( "'", "\\'", $string );