Fix templates service to avoid <pre><li> prefix