![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Errors with hyperlinks
Hi there,
I'm coding an ePub with many hyperlinks in it. Things are going great but I've found two bugs with no (to me) solutions: 1)http://www4.agr.gc.ca/AAFC-AAC/displ...7176899&lang=f 2)http://www.agrivision.ca/pdf/factsheets/herb&spice.pdf Both of them have "&" in it and Sigil thinks it's a call for a command and I have several errors and I can't save my file. Is there any way to keep my hyperlink active and keep the infos avaible for the reader? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Try replacing all ampersands in llinks with &
|
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
|
You could also use a URL shortening service. MURLS is a free desktop app that helps a lot with this http://code.google.com/p/murls/
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Problem solved!
|
![]() |
![]() |
![]() |
#5 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Not just "able to". For standards compliance, you're required to use either & or one of the equivalent numerical entities whenever you want an ampersand literal to appear in HTML, whether it's in an attribute value or in the body of the text.
Most web browsers will silently turn improper ampersands into literals for you because so many web developers get it wrong so frequently (which ironically contributes to more and more developers getting it wrong), but it's still wrong. It would probably be a good idea to run xmllint on your content. It's a great tool for catching these sorts of mistakes, and IIRC would have flagged that as an invalid entity. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Flightcrew says Errors, but Sigil says no Errors… | Barcelona | Sigil | 4 | 02-09-2012 07:13 AM |
Hyperlinks | jtdolphins | Which one should I buy? | 3 | 06-18-2011 12:29 AM |
Hyperlinks Help ^^ | Anarel | Workshop | 2 | 08-16-2010 09:12 AM |
Hyperlinks/Footnotes | Anarel | Calibre | 7 | 08-16-2010 04:23 AM |
Hyperlinks | MsAstoria | Amazon Kindle | 0 | 03-12-2009 07:40 PM |