I am looking for someone who can guide me how to get special tag from string-formated html.
This error means that the method match on your variable html does not exist, hence that it's most probably not a string.
You can either verify that the type of your html variable is indeed a string (using typeof for instance), or manually cast it into a string using the String constructor