From: Willem Rein Oudshoorn <woudshoo@xs4all.nl>
To: emacs-devel@gnu.org
Subject: Re: EWW/SHR Feature Request
Date: Sat, 22 Mar 2014 11:22:03 +0100 [thread overview]
Message-ID: <m1bnwya5ys.fsf@wims-macbook-pro.fritz.box> (raw)
In-Reply-To: 21292.24135.442736.223060@lapdog.roam.corp.google.com
"T. V. Raman" <raman@google.com> writes:
> Now that we have shr and eww, it would be nice to have a function
> that takes an html string and returns a formatted representation
> (replete with properties etc.) something like
> (shr-format-html-string html-string) -> Return: Formatted string
> suitable for insertion into a buffer.
I have been using this function for a while
(defun salesforce-insert-html (html)
"Insert at current point, the 'rendered' HTML."
(when html
(shr-insert-document
(with-temp-buffer
(insert html)
(libxml-parse-html-region (point-min) (point-max))))))
Wim Oudshoorn
next prev parent reply other threads:[~2014-03-22 10:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 15:44 EWW/SHR Feature Request T. V. Raman
2014-03-21 16:48 ` Nicolas Richard
2014-03-21 18:04 ` Vibhav Pant
2014-03-21 18:36 ` T.V Raman
2014-03-21 21:03 ` Lars Magne Ingebrigtsen
2014-03-22 10:22 ` Willem Rein Oudshoorn [this message]
2016-07-14 2:44 ` raman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1bnwya5ys.fsf@wims-macbook-pro.fritz.box \
--to=woudshoo@xs4all.nl \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).