[Catalyst] UTF-8 characters in HTML::Prototype

Dobrica Pavlinusic dpavlin at rot13.org
Sat Nov 26 14:32:28 CET 2005


HTML::Prototype has a problem when given UTF-8 characters (they are
encoded in entities, so they don't show up in suggest).

Patch is attached, please apply it if appropriate.

-- 
Dobrica Pavlinusic               2share!2flame            dpavlin at rot13.org
Unix addict. Internet consultant.             http://www.rot13.org/~dpavlin
-------------- next part --------------
==== Patch <html-prototype-autocomplete-utf8-fix> level 1
Source: [No source]
Target: 4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/HTML-Prototype/lib:2105
        (http://dev.catalyst.perl.org/repos/Catalyst/trunk)
Log:
HTML::Element will encode UTF-8 characters to html entities
=== HTML/Prototype.pm
==================================================================
--- HTML/Prototype.pm  (revision 2105)
+++ HTML/Prototype.pm  (patch html-prototype-autocomplete-utf8-fix level 1)
@@ -280,7 +280,7 @@
         push @elements, HTML::Element->new('li')->push_content($item);
     }
     return HTML::Element->new('ul')->push_content( _unique(@elements) )
-      ->as_HTML;
+      ->as_HTML('<>&');
 }
 
 =item $prototype->text_field_with_auto_complete($method, [\%tag_options], [\%completion_options])

==== BEGIN SVK PATCH BLOCK ====
Version: svk 0.991 (linux)

eJyFkk1u2zAQhb3ropdQAaZpF6pFUpRktxC8aVCgPwhSp1uBokaxUEoU6LETF9w0m+ZQPUIOVUqK
k+6ypOa9b55m5syu36+oy/PIERq57z8+L5fnEtXmxL9I4qBq0FginIY9aMKdNlckdp1swVdR2ivA
PKfenE3mj6PhCIkHRinRdFuyGGEFWgBCHV/FbsXcinuro75oeugKawz6ZpRSlvhqMWRS2myhGLyD
Xgx6Rmg8GarGgvINDz7Up/XXLyPsCOADQDwAnpRe8kjix851o32sdITMz61Bg4ce3vXt2O5ZIpuI
Y1X2vT4UCDdYgUY5duHMsVJWSSLTKIlVVNdVSWtBpSijkkG8oBXh1I/w22x2e7e9vfv18sXs/mL2
Z/b776v7izenH/LXp2/9zP4byRT5AZ5JLmkioKwzlZQ1X8QJKBkLHoEQTE1zWYy/55ekoYUOg+tG
6wA6ZSoILtdnYRaojbRSIdhtgCbYYDvUscEGtoQnbvgQ9sfphHKHRpm214AQ7rDOwrq5yXPmCGPT
OazHC1kuL7tm76FSnyTOr6qXuPHHZGHvH7tdUxEm3Bztrvs5HyKGjxuY66b0GkYjMQSIZcVTVbFQ
1KDCiNMozLiow5KnmVApkzyN/wEUDuxz
==== END SVK PATCH BLOCK ====


More information about the Catalyst mailing list