all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Any function in Emacs to unquote html's " , < , > , & etc
@ 2010-10-30 21:29 Lennart Borgman
  2010-10-30 21:56 ` Lars Magne Ingebrigtsen
  2010-11-14 21:04 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-10-30 21:29 UTC (permalink / raw)
  To: Emacs-Devel devel

Is there any function in Emacs to do this?
Should there be one?



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

* Re: Any function in Emacs to unquote html's " , < , > , & etc
  2010-10-30 21:29 Any function in Emacs to unquote html's " , < , > , & etc Lennart Borgman
@ 2010-10-30 21:56 ` Lars Magne Ingebrigtsen
  2010-10-30 22:07   ` Lennart Borgman
  2010-11-14 21:04 ` Andy Wingo
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-30 21:56 UTC (permalink / raw)
  To: emacs-devel

Lennart Borgman <lennart.borgman@gmail.com> writes:

> Is there any function in Emacs to do this?

There's `mm-url-decode-entities-string' and related functions...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Any function in Emacs to unquote html's &quot; , &lt; , &gt; , &amp; etc
  2010-10-30 21:56 ` Lars Magne Ingebrigtsen
@ 2010-10-30 22:07   ` Lennart Borgman
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-10-30 22:07 UTC (permalink / raw)
  To: emacs-devel

On Sat, Oct 30, 2010 at 11:56 PM, Lars Magne Ingebrigtsen
<larsi@gnus.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Is there any function in Emacs to do this?
>
> There's `mm-url-decode-entities-string' and related functions...

Thanks. That was what I was looking for.

However it is very hard to find it unless you happen to know about it
(or someone who knows is helpful and tells you ;-) ). Is there
anything we can do about this? (Both for this specific case, such a
function is probably often wanted when manupulating html. And in the
general case - i.e. apropos is not of much help here.)



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

* Re: Any function in Emacs to unquote html's &quot; , &lt; , &gt; , &amp; etc
  2010-10-30 21:29 Any function in Emacs to unquote html's &quot; , &lt; , &gt; , &amp; etc Lennart Borgman
  2010-10-30 21:56 ` Lars Magne Ingebrigtsen
@ 2010-11-14 21:04 ` Andy Wingo
  1 sibling, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2010-11-14 21:04 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

On Sat 30 Oct 2010 23:29, Lennart Borgman <lennart.borgman@gmail.com> writes:

> Is there any function in Emacs to do this?
> Should there be one?

It's bad business if your XML / HTML parser doesn't do this for you as
it parses.

 <foo bar="&quot;/&gt;&lt;baz qux=&quot;"/>
 -> <foo bar=""/><baz qux=""/>

Oops...

Andy
-- 
http://wingolog.org/



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

end of thread, other threads:[~2010-11-14 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-30 21:29 Any function in Emacs to unquote html's &quot; , &lt; , &gt; , &amp; etc Lennart Borgman
2010-10-30 21:56 ` Lars Magne Ingebrigtsen
2010-10-30 22:07   ` Lennart Borgman
2010-11-14 21:04 ` Andy Wingo

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.