Remove trailing HTML in devsite mode