Untitled

Anonymous
plain_text
01/22/2025 7:34 AM
676 B
11
Indexable
CREATE OR REPLACE FUNCTION escape_html(input_str IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
  RETURN REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(input_str, '&', '&'),
                                                   '<', '&lt;'),
                                                   '>', '&gt;'),
                                                   '"', '&quot;'),
                                                   '''', '&#39;'),
                                                   '/', '&#47;');
END;
/
Editor is loading...
Leave a Comment