Friday, July 30, 2010

Simple Html2Txt function , doesn't work for `&' symbol ?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
Consider following function , i tried to do a simple html conversation,
not working for the third one ?


function HtmlToText()
exec "%s/&lt;/</g"
exec "%s/&gt;/>/g"
exec "%s/&amp;/\&/g"
endfunc

Many thanks !

- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxShQAACgkQvf41sEptMqBONQCgt1ihXLFpk+7A7wgldCToCnk8
6uIAnRwbfqienQPWncu9A//Md8vqRiet
=AfzG
-----END PGP SIGNATURE-----

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: