emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersand in URL
Date: Thu, 5 Feb 2015 12:03:28 +0100	[thread overview]
Message-ID: <2015-02-05T11-55-37@devnull.Karl-Voit.at> (raw)
In-Reply-To: 87k2zw20b0.fsf@nicolasgoaziou.fr

* Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,

Hi!

> Karl Voit <devnull@Karl-Voit.at> writes:
>
>> ,----[ resulting mm-file ]
>> | <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
>> `----
>>
>> When I remove the "&" from the mm-file, FreeMind is able to
>> import/show the mind-map without any issues.

Forgot to mention: when I start xml-mode with the mm-file, it shows
one error at the ampersand (missing semi-colon) as well.

>> This might be related with the HTML exporter since ox-freemind.el is
>> using ox-html.
>
> This looks like valid HTML code to me. Also it exports fine to HTML. Is
> there any restriction related to this specific to FreeMind?

I checked with an HTML verifier from http://validator.w3.org/check
(HTML Snippet, XHTML 1.0 Strict):

,----[ Generated HTML page for validator ]
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|  <head>
|    <title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>
|    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
|    <meta http-equiv="Content-Style-Type" content="text/css" />
|  </head>
|  <body>
|
| <ul>
|  <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
| </ul>
|
|  </body>
| </html>
`----

There are multiple errors and warnings that relate to the ampersand.

So I guess the URL is not quoted/sanitized properly.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

  reply	other threads:[~2015-02-05 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 16:46 [bug] Export to FreeMind (HTML) fails due to ampersant in URL Karl Voit
2015-02-05  9:08 ` Nicolas Goaziou
2015-02-05 11:03   ` Karl Voit [this message]
2015-02-05 11:27   ` Achim Gratz
2015-02-05 11:58     ` Nicolas Goaziou
2015-02-09  7:42       ` Karl Voit
2015-02-05 16:59     ` Karl Voit

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2015-02-05T11-55-37@devnull.Karl-Voit.at \
    --to=devnull@karl-voit.at \
    --cc=emacs-orgmode@gnu.org \
    --cc=news1142@Karl-Voit.at \
    /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/org-mode.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).