
diff -r a504a7840915 -r d7ff46d958f4 schemas/_regproc.postgres.sql
--- a/schemas/_regproc.postgres.sql	Wed Apr 15 22:08:08 2015 +0200
+++ b/schemas/_regproc.postgres.sql	Mon Apr 06 21:46:52 2015 +0200
@@ -26,7 +26,6 @@
 );;
 
 
-
 DROP FUNCTION IF EXISTS limit_size (fulltext text, format text, maxsize integer);
 CREATE FUNCTION limit_size (fulltext text, format text, maxsize integer) RETURNS text AS $$
 DECLARE
@@ -36,7 +35,7 @@
        RETURN fulltext;
     END IF;
     IF format = 'text/html' OR format = 'text/xhtml' OR format = 'text/xml' THEN
-       plaintext := regexp_replace(fulltext, '<[\\w/][^>]+>', '', 'g');
+       plaintext := regexp_replace(fulltext, '<[a-zA-Z/][^>]*>', '', 'g');
     ELSE
        plaintext := fulltext;
     END IF;




