[OTR-dev] Re: Requirements for libotr4
Jonathan Schleifer
js-otrim@webkeks.org
Thu, 19 Jun 2008 17:12:38 +0200
--Sig_/YR/YFena_6rVuMPxoUArjzv
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Kjell Braden <fnord@pentabarf.de> wrote:
> I don't think the receiver should remove HTML from the message. What
> if I want to send a HTML-snippet to my friend using jabber? Currently,
> pidgin would escape the HTML tags to < and >, and proper clients
> would display those entities in plaintext, which is very bad. If we
> would implement a stripping method on the receiving side, they would
> change that back to < and >, but they would also strip anything which
> was initially in < and >. So if a proper client sends HTML tags (in
> plaintext, not intended to be formatted!) to another proper client,
> they would strip the HTML tags, which is even worse.
Ian already said that the client can specify if it's want HTML or not
on sending and receiving. So if a non-HTML client gives a message to
libotr, libotr will escape it and on receiving, a non-HTML client will
get an unescaped message from libotr.
> The right thing to do here would be to make the sender send
> information about what kind of message it is (maybe using MIME-Types
> or whatever, so they would send text/html or text/plain or
> text/x-aolrtf) and to make the receiver convert them to the right
> format.
The client would still need to handle HTML stripping then - with Ian's
proposal, the client would just specify it it supports HTML or not and
libotr will do all the rest.
Oh, btw: text/x-aolrtf died - finally! It's not supported anymore
since ICQ 6. IMO a very good thing.
--=20
Jonathan
--Sig_/YR/YFena_6rVuMPxoUArjzv
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
iQIcBAEBAwAGBQJIWndpAAoJEMtRg9d5cXHkascQAJKEmzvc7H+FgClL3DZxahCU
Q4s9M0wuGizxNz8AZeVQ2plSNUYTFPDO+BOo36RPGX9zkHkqnBDL3/N/5xzKjq8t
qHCyCCeL2GDKBfKcjSKYrr7yBdNfuSSiyF5KmSYudqB4+bCxmLrjeFHQLOdTbzT/
ljm0NC4PEhMZwezpqa7E478ND6TD2C0EkGZaSuye35GPTH5E/kHeu4NU3iMia111
Btcf5B0th+GFnsfqevUCbKsHRHLJskUuFRNDAjX/B6nBNHx2PzNdt6OZ6gB9+ELj
LDEviCQN51kmCgXe8aw3rnlslT0JrxK5c95Kkxe+IYm3a7OvEeaQBdgbXNIizwco
K7rytvqk+2JWLjBWSCgECW5gBRc4Rp/cfFqMADu/+quV4RjSHNrZQxOhcqDv+O14
07IQ3SYDMvZqLocXs8Li70tCXJmjrzbETgUF+7pHhRxvJEcAw09VwaEAI8y+kq/q
Z3yGMaLbclCfMM63x5GoU3SFm0C3JYU8+mLPcSEYkFQNzOvQHz7q8tosJjYIFLkg
Abomy5z9kYlOag8Lp1oD8NFQ6x/bmOedtoxnJ6S/1IYY0nzWogC49dyIytu2u2O7
OGEmvXEh1M7TFYdDypzOaX9Jq7jUkuWX9C3HWoxNpglyfpQahKjq5bD1QRB/5Oci
drKuBDxcduHIfG6e8T9E
=BW3t
-----END PGP SIGNATURE-----
--Sig_/YR/YFena_6rVuMPxoUArjzv--