Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
On the site I'm currently working on I have a sidebar panel which lists the 3 newest news articles. But I've come across a problem with a '%' in one of the news article titles URLs.
So I have the following HTML
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="data [@alias = 'newsHeadline']" /></a>
How would I replace any troublesome characters such as a percent sign with the correct HTML entity in 'umbraco.library:NiceUrl(@id)'
Thanks!
Dave
There's a setting in one of the config files that handle special characters in URLs, if I remember correct -- might be the best place to handle that?
(Otherwise, you could use the umbraco.library:Replace() function to replace in the result from NiceUrl())
/Chriztian
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Escape HTML entities in umbraco.library:NiceUrl()?
Hi,
On the site I'm currently working on I have a sidebar panel which lists the 3 newest news articles. But I've come across a problem with a '%' in one of the news article titles URLs.
So I have the following HTML
How would I replace any troublesome characters such as a percent sign with the correct HTML entity in 'umbraco.library:NiceUrl(@id)'
Thanks!
Dave
There's a setting in one of the config files that handle special characters in URLs, if I remember correct -- might be the best place to handle that?
(Otherwise, you could use the umbraco.library:Replace() function to replace in the result from NiceUrl())
/Chriztian
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.