all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* function to convert html encoded chars & etc
@ 2008-05-07 10:56 Xah
  2008-05-07 11:44 ` Mario Domenech Goulart
  2008-05-09  2:15 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Xah @ 2008-05-07 10:56 UTC (permalink / raw)
  To: help-gnu-emacs

is there a function that change a string of all html encoded chars
like < > etc to their original character?

Also, am interested in a function to do reverse.

-----------------

another question instead of posting another thread...

is there a function that add or take away a level of the conventional
quoting in email replying? i.e. adding or taking away those line
prefix " > ". (am tired of manually calling rectangle-* commands)

Thanks.

  Xah
  xah@xahlee.org
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: function to convert html encoded chars & etc
  2008-05-07 10:56 function to convert html encoded chars & etc Xah
@ 2008-05-07 11:44 ` Mario Domenech Goulart
  2008-05-09  2:15 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Mario Domenech Goulart @ 2008-05-07 11:44 UTC (permalink / raw)
  To: Xah; +Cc: help-gnu-emacs

Hi Xah,

On Wed, 7 May 2008 03:56:53 -0700 (PDT) Xah <xahlee@gmail.com> wrote:

> is there a function that add or take away a level of the conventional
> quoting in email replying? i.e. adding or taking away those line
> prefix " > ". (am tired of manually calling rectangle-* commands)

M-x uncomment-region (when in Message mode) would do the trick.

Best wishes,
Mario




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: function to convert html encoded chars &amp; etc
  2008-05-07 10:56 function to convert html encoded chars &amp; etc Xah
  2008-05-07 11:44 ` Mario Domenech Goulart
@ 2008-05-09  2:15 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2008-05-09  2:15 UTC (permalink / raw)
  To: help-gnu-emacs

Xah wrote:
> is there a function that change a string of all html encoded chars
> like &lt; &gt; etc to their original character?

Try html2text-substitute (controlled by html2text-replace-list) or
xml-substitute-special (controlled by xml-entity-alist).

> Also, am interested in a function to do reverse.

Try url-insert-entities-in-string or xml-parse-region (also controlled
by xml-entity-list).

-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-09  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 10:56 function to convert html encoded chars &amp; etc Xah
2008-05-07 11:44 ` Mario Domenech Goulart
2008-05-09  2:15 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.