Complete the function about html resource filter