Move html_string_class into a global

This is so we can perform some checks on the value passed in ahead
of time