Fix docs error introduced in 1ea44a (#17906)

Issue #17906 was finished quite recently, but the equivalent in the documentation still incorrectly showed the `|safe` filter.