Hello,
I am trying to output HTML and JavaScript using PHP as the following:
<span style="float:ri ght;">
<input type="button" value="Edit" onclick="startE ditCategory('<? php
echo("{$categor yId}"); ?>', '<?php echo("{$categor yName}"); ?>');" />
</span>
The $categoryName variable can contain single and double quotes, so
how can I escape them?
Thanks.
I am trying to output HTML and JavaScript using PHP as the following:
<span style="float:ri ght;">
<input type="button" value="Edit" onclick="startE ditCategory('<? php
echo("{$categor yId}"); ?>', '<?php echo("{$categor yName}"); ?>');" />
</span>
The $categoryName variable can contain single and double quotes, so
how can I escape them?
Thanks.
Comment