Actions
Feature #12023
openMySQL Stored Precdure: QDECODESPECIALCHAR()
Start date:
16.02.2021
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Description
Mitunter waere es hilfreich wenn man Text aus der DB einfach htmlSpecialChar decode machen koennte.
Die Escape Class 'h' ist gut bei QFQ Variablen, hilft aber nicht wenn die Daten direkt aus der DB kommen und ausgegeben werden sollen
Related issues
Updated by Carsten Rose over 2 years ago
DELIMITER $$ CREATE DEFINER = `root`@`localhost` FUNCTION `QDECODESPECIALCHAR`(x longtext) RETURNS longtext NO SQL DETERMINISTIC BEGIN DECLARE TextString LONGTEXT; SET TextString = x ; SET TextString = REPLACE(TextString, '&','&') ; SET TextString = REPLACE(TextString, '"','"') ; SET TextString = REPLACE(TextString, ''',"'") ; SET TextString = REPLACE(TextString, ''',"'") ; SET TextString = REPLACE(TextString, '<','<') ; SET TextString = REPLACE(TextString, '>','>') ; RETURN TextString ; END$$ DELIMITER ;
Updated by Carsten Rose over 2 years ago
- Related to Feature #12022: New escape class: htmlSpecialChar added
Actions