Removed quotemeta() function. It didn't solve the problem and added visible escape characters to the HTML title. For now, if you want to surrount your title with quotation marks, you will have to put backslashes in front of them.