Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] use HTML::Entities in UserTag?



******    message to minivend-users from cfm@maine.com     ******

On Wed, Mar 15, 2000 at 02:14:56PM +0100, jojo@buchonline.net wrote:
> ******    message to minivend-users from jojo@buchonline.net     ******
> 
> Hi list,
> 
> i have trouble to use Entities in my UserTag! This is the codes:
> 
> --------------snipp----------
> # [encode] message [/encode]
> #
> # This tag is the equivalent of [L] ... [/L] localization, except
> # it works with contained tags
> #
> 
> UserTag encode hasEndTag   1
> UserTag encode Interpolate 1
> UserTag encode Routine <<EOF
> sub {
>     my ($message) = @_;
>     use HTML::Entities;
>     encode_entities($message);
>     $message = $message;
>     return $message;
> }
> EOF

Develop a way to debug.

return join '<BR>',@INC;  # where is perl

HTML::Entities::encode_entities($message); # I don't use it, don't know syntax

then maybe eval{} and return $@ if defined($@);

You can also add HTML::Entities into bin/minivend.  I'm
not real up on the differences between use and require and how
those will play in a UserTag.







> --------------snapp----------
> 
> Any idea, hints and helps are very welcome!
> 
> Thanks!
> 
> Joachim
> 
> -- 
> Hans-Joachim Leidinger
> buch online                 jojo@buchonline.net
> Munscheidstr. 14            FAX: +49 209 1971449
> 45886 Gelsenkirchen         FAX: 0209 1671449
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: