Hi All,
I have a page at
http://gti.websitewelcome.com/~bartlett/index.php?id=40
when the user clicks on the thumbs on the side it switches the big image and the caption text that holds the person’s bio info.
In the manager I made a new document for each staff person. In each document there are tvs fo the thumb image, and for the full sized image and a tv text area where I can enter their bio info.
I have separate chunk that reads:
<a href="#" onclick="MM_setTextOfLayer('bio','','[+facebio+]'); MM_swapImage('swap','','[+facepic+]',1); return false;"><img src="[+facethumb+]" alt="[+facename+]" /></a>
This all works unless I forget to escape out dangerous characters in the [+facebio+].
how do I escape characters with the use of the escape function
so i /the client won’t have to worry about a quotation mark left in the paragraph?
I am not very php savy, but I saw this in the documenttation:
The function:
function escape($s){
return mysql_escape_string($s);
} To use
$string = $modx->db->escape($string); Example
$string = "This is Joe’s Page";
$string = $modx->db->escape($string);
how do I implement it?