• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

&amp; <- how to remove

Status
Not open for further replies.
Joined
Sep 13, 2005
Posts
2,479
Reaction score
104
Having trouble trying to remove this &amp; from the detail page.

http://www.stivesdirectory.co.uk/detail/link-15.html

There is one too many &amp;

<p class="descr">Accommodation: Bed &amp;amp; Breakfasts</p>

The source code is:

<td width="80%" align="left" valign="top" style="padding:0px 20px 20px 20px;">
{if $category.ID eq 0 and not $list and not $search}
<h1 id="title">{$in_page_title|escape|trim}</h1>
<p class="descr">{$description|escape|trim}</p>
{/if}

I'm baffled!
 
I can't as that comes from the database, thats not code. and it's correct in the db. See the issue?
 
I know what you mean but people submit stuff with & in so it needs to be sorted. Cheers anyway!!
 
It looks like the & sign is being escaped twice.

Try this:

<p class="descr">{$description|trim}</p>
 
Looks like thats cracked it matey. TOP LAD!!! Being trying to sort that for bloomin ages, now to change it on 200 sites. Yay.
 
Status
Not open for further replies.
Top Bottom