Translations:Help:Lint errors/missing-end-tag/6/en

Examples 2 and 3 not only causes the missing end linter warning but also the stripped tag warning. Solutions for 2 and 3 depend on the exact required output. The simplest is to change the $span into a $div.