Just put the `<li>`'s tags on the same line and you won't need to strip whitespace.