Fixed Title Display Error on Gallery

- Fixed a bug with the gallery fancy box titles leaking markup instead of displaying the title