Skip to main content

Product changes

How we're saving publishers time by converting formatted text

Screenshot of a javascript code snippet of the paste-html-to-govspeak implementation. The first line is a code comment reading: “npm install paste-html-to-govspeak”. The next line imports the module, reading: “import { pasteListener } from 'paste-html-to-govspeak'”. The last line gives an example of how to attach the paste event listener to the element, this reads as “element.addEventListener('paste', pasteListener)”.

We’ve reduced the time and effort it takes to create content on GOV.UK by improving the pasting of formatted content. Here’s why and how we did it.