Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

&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.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom