Skip to content

Instantly share code, notes, and snippets.

View rodneyjoyce's full-sized avatar

Rodney rodneyjoyce

View GitHub Profile
@italoveloso
italoveloso / MySQL function for replacing HTML entities with their actual characters
Created April 25, 2013 14:54
MySQL function for replacing HTML entities with their actual characters
DELIMITER $$
DROP FUNCTION IF EXISTS `database`.`HTML_UnEncode`$$
CREATE DEFINER=`root`@`127.0.0.1` FUNCTION `HTML_UnEncode`(x VARCHAR(255)) RETURNS varchar(255) CHARSET latin1
BEGIN
DECLARE TextString VARCHAR(255) ;
SET TextString = x ;
#quotation mark