well basically a simple ereg_replace("&qoute","\"",$contents) will not work because i need it to change it only withing brackets.. not in the rest of the string.
i have tried a simple array that counts through each character in a string and determines the number of <'s and >'s if they're odd before the &qoute is reached then change &qoute otherwise don't but somehow my logic is off