diff --git a/opentech/apply/funds/templatetags/submission_tags.py b/opentech/apply/funds/templatetags/submission_tags.py index a55bc257ba5cf4565a0a21d51fe20a5ceee0393e..acfdf0b15fd7d353b2668624f2976019bb1c5593 100644 --- a/opentech/apply/funds/templatetags/submission_tags.py +++ b/opentech/apply/funds/templatetags/submission_tags.py @@ -11,7 +11,7 @@ register = template.Library() @register.filter def submission_links(value): # Match tags in the format #123 that is not preceeded and/or followed by a word character. - matches = re.findall('(?<!\w)\#(\d+)(?!\w)', value) + matches = re.findall('(?<![\w\&])\#(\d+)(?!\w)', value) links = {} if matches: for submission in ApplicationSubmission.objects.filter(id__in=matches):