Re: area tag encoding dash in sku to %2d

Peter <[email protected]>
Newsgroups gmane.comp.web.interchange.users
Message-ID <[email protected]>
On 10/06/17 23:32, Mike Heins wrote:
>> GlobalSub <<<EOR
> 
> I think you have one too many < in the here doc. Should work fine, though.

Oops, you're right.  Score one for the typo monster.

> We could consider defining that string in Vend::Util like is done
> for HTML::Entities, but the above is the functional equivalent and not
> difficult to do.

I suppose you could also do:

GlobalSub <<<EOR
sub override_hacking {
    package Vend::Util;
	*hexify = \&HTML::Entities::encode_entities;
}
EOR

...or something like that.  In fact, is there any reason why we should
keep using hexify when we are using encode_entities everywhere else?


Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.