Re: #23530 [Opn]: Mail_Mime image URL replacement error
| From: | Bruno Pedro | Date: | Mon, 26 May 2003 14:17:16 +0000 |
| Subject: | Re: #23530 [Opn]: Mail_Mime image URL replacement error | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16713@lists.php.net to get a copy of this message | ||
On Mon, 2003-05-26 at 14:56, arnaud@php.net wrote:
> The replace is much too general. I would suggest replacing using a
> regular expression.
My suggestion: use XML_HTMLSax, generate the HTML tree and replace
appropriately.
> Of course this doesn't take care of the "url" function notation that
> can be used in CSS and there may be other considerations.... but I
> think it's a better method than the one currently in place.
In CSS, use regular expression replacement.
> For now, users can use a workaround for the second point: make an array
> of images you want to add, sort it in descending order by length, and
> then use the addHTMLImage function on each element of the array.
That's a good workaround, but it should be fixed.
Regards
--
Bruno Pedro
PTM.com
Get my public key here:
http://search.keyserver.net:11371/pks/lookup?op=get&search=0x9FEECDC8
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc