Notice example

With markup in the title

In some circumstances it may be necessary to include simple markup in the title, such as a link. Note that this will be wrapped in a H2 tag if there is no description included, so be sure that any markup inserted is valid inside that tag (e.g. another heading tag inside a H2 would be invalid).

How it looks (preview)

Advisory Committee on Novel Foods and Processes has a separate website

How to call this example

<%= render "govuk_publishing_components/components/notice", {
  title: sanitize("Advisory Committee on Novel Foods and Processes has a <a href=\"http://www.food.gov.uk/acnfp\">separate website</a>")
} %>