Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-11-08 07:55:10

JohnnyW
New member
Registered: 2007-11-08
Posts: 2

Xinha escaping quotes?

Hello!

I'm trying to use Xinha to help a client construct a newsletter which they can then send via a HTML form (using PHP). Whenever I create links (in Xinha using the LINK button), however, they come up in OSX's Mail program with a preceding: x-msg://4/%22

So http://www.mywebsite.com appears as x-msg://4/%22http://www.mywebsite.com

I've sent the email as plain text and I can see that the problem is that Xinha is escaping quotes. If I put the same HTML directly into PHP by hand, it works fine, but (presumably) Xinha must be turning the links into this:

<a href=\"www.mywebsite.com\">­www.mywebsite.com</a>

How can I stop Xinha from doing this (assuming it IS Xinha doing this)?

Thanks for any help!
- Johnny

Edit: Added some clarity!

Last edited by JohnnyW (2007-11-08 08:46:59)

Offline

#2 2007-11-08 08:28:35

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Xinha escaping quotes?

Is it right that you refer to the backslashes before the quotes? That's PHP's magic quotes function, you can easilyremove them like this

$value = (ini_get('magic_quotes_gpc') ? stripslashes($value) : $value);

If you mean that the quotes are encoded into > (which I don't see in your post, but maybe it's because of the forum display), there's nothing todo about it

Edited: Sorry,I have been waiting to long. What was here before was not my answer, just an accident wink

Last edited by ray (2007-11-08 09:01:25)

Offline

#3 2007-11-08 08:45:16

JohnnyW
New member
Registered: 2007-11-08
Posts: 2

Re: Xinha escaping quotes?

I see! Thanks for that! Worked great!

Editing posts can be a pain smile

I see you were testing that > would be displayed? That makes sense now smile

Last edited by JohnnyW (2007-11-08 09:12:58)

Offline

Board footer

Powered by FluxBB