# Odd issue with matches/title offset in company search

**URL:** <http://forum.companieshouse.gov.uk/t/odd-issue-with-matches-title-offset-in-company-search/187>\
**Category:** API Issues\
**Created:** [August 4, 2015, 7:43pm UTC](http://forum.companieshouse.gov.uk/t/odd-issue-with-matches-title-offset-in-company-search/187 "2015-08-04T19:43:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [August 4, 2015, 7:43pm UTC](http://forum.companieshouse.gov.uk/t/odd-issue-with-matches-title-offset-in-company-search/187/1 "2015-08-04T19:43:44Z")

</div>

The offset for highlighting matches is off in company names that have an ampersand when it’s also matching something at the end of the company name. You can see this clearly in the beta search where the html tags are screwed up.

> **[Companies House](https://find-and-update.company-information.service.gov.uk/search?q=a%2Bllp)**

> **[Companies House](https://find-and-update.company-information.service.gov.uk/search?q=son%2B&%2Bltd)**

It looks like it’s adding an additional pair of values 4 greater than the last one.

I’ll take a stab in the dark that somewhere it’s including an additional _amp;_ after the ampersand which might account for the four extra characters.

---

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [August 13, 2015, 2:19pm UTC](http://forum.companieshouse.gov.uk/t/odd-issue-with-matches-title-offset-in-company-search/187/2 "2015-08-13T14:19:17Z")

</div>

A fix has been developed for this and will deployed to the service in the next few days.
