trim html partial