Hi,
maybe it is to hard to speak of a bug.
If you enter a posting in plain text, mark some text and hit the URL button, you are able to enter an URL and Serendipity does the "<a href ...></a>" around your marked text.
This works perfectly.
In case your URL contains non-HTML characters like the ampersand, you get an error with any validation service.
Could you please fix that?
Thanks a lot
Dirk
Insert URL adds non html characters ...
Re: Insert URL adds non html characters ...
Hi,
I cannot confirm the bug, just made an url to: "http://test.domain.com/serendipity_admi ... ction]=new" without problem.
Daniel
I cannot confirm the bug, just made an url to: "http://test.domain.com/serendipity_admi ... ction]=new" without problem.
Daniel
-
Lux
- Regular
- Posts: 764
- Joined: Fri Aug 12, 2005 4:36 pm
- Location: Grüt, Zürich, Switzerland
- Contact:
Re: Insert URL adds non html characters ...
Can you please send me the link to the blog post?danst0 wrote:I cannot confirm the bug, just made an url to: "http://test.domain.com/serendipity_admi ... ction]=new" without problem.
Cheers
Dirk
Re: Insert URL adds non html characters ...
Its only on my test installation and not accessible from outside...
This is how the generated source looks like:
<a href="http://test.domain.com/serendipity_admi ... ction]=new" title="http://test.domain.com/serendipity_admi ... ew">abc</a>
This is how the generated source looks like:
<a href="http://test.domain.com/serendipity_admi ... ction]=new" title="http://test.domain.com/serendipity_admi ... ew">abc</a>
-
Lux
- Regular
- Posts: 764
- Joined: Fri Aug 12, 2005 4:36 pm
- Location: Grüt, Zürich, Switzerland
- Contact:
Re: Insert URL adds non html characters ...
Put it on a website and try to validate it through http://validator.w3.org/checkdanst0 wrote:This is how the generated source looks like:
<a href="http://test.domain.com/serendipity_admi ... ction]=new" title="http://test.domain.com/serendipity_admi ... ew">abc</a>
Then you will get, what I was trying to say.
CheersAn entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Dirk
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Insert URL adds non html characters ...
Hi!
You either need to encode your URL and replace "&" with "&" or you need to install the XHTML cleanup plugin.
On an unrelated sidenote I think it was bad by the W3C to pick "&" as an entity denoted and make parsing be extra picky to complain if an entity does not exist.
Regards,
Garvin
You either need to encode your URL and replace "&" with "&" or you need to install the XHTML cleanup plugin.
On an unrelated sidenote I think it was bad by the W3C to pick "&" as an entity denoted and make parsing be extra picky to complain if an entity does not exist.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Lux
- Regular
- Posts: 764
- Joined: Fri Aug 12, 2005 4:36 pm
- Location: Grüt, Zürich, Switzerland
- Contact:
Re: Insert URL adds non html characters ...
Plugin installed. I know the manual fix, but I tend to forget thatgarvinhicking wrote:You either need to encode your URL and replace "&" with "&" or you need to install the XHTML cleanup plugin.
Agreed.garvinhicking wrote:On an unrelated sidenote I think it was bad by the W3C to pick "&" as an entity denoted and make parsing be extra picky to complain if an entity does not exist.
Dirk