@classmethod
def convert_html_fields_in_subtopic_page_contents(cls, subtopic_page_contents_dict, conversion_fn):
    'Applies a conversion function on all the html strings in subtopic\n        page contents to migrate them to a desired state.\n\n        Args:\n            subtopic_page_contents_dict: dict. The dict representation of\n                subtopic page contents.\n            conversion_fn: function. The conversion function to be applied on\n                the subtopic_page_contents_dict.\n\n        Returns:\n            dict. The converted subtopic_page_contents_dict.\n        '
    subtopic_page_contents_dict['written_translations'] = state_domain.WrittenTranslations.convert_html_in_written_translations(subtopic_page_contents_dict['written_translations'], conversion_fn)
    subtopic_page_contents_dict['subtitled_html']['html'] = conversion_fn(subtopic_page_contents_dict['subtitled_html']['html'])
    return subtopic_page_contents_dict
Applies a conversion function on all the html strings in subtopic
page contents to migrate them to a desired state.

Args:
    subtopic_page_contents_dict: dict. The dict representation of
        subtopic page contents.
    conversion_fn: function. The conversion function to be applied on
        the subtopic_page_contents_dict.

Returns:
    dict. The converted subtopic_page_contents_dict.
@classmethod
def convert_html_fields_in_subtopic_page_contents(cls, subtopic_page_contents_dict, conversion_fn):
    'Applies a conversion function on all the html strings in subtopic\n        page contents to migrate them to a desired state.\n\n        Args:\n            subtopic_page_contents_dict: dict. The dict representation of\n                subtopic page contents.\n            conversion_fn: function. The conversion function to be applied on\n                the subtopic_page_contents_dict.\n\n        Returns:\n            dict. The converted subtopic_page_contents_dict.\n        '
    subtopic_page_contents_dict['written_translations'] = state_domain.WrittenTranslations.convert_html_in_written_translations(subtopic_page_contents_dict['written_translations'], conversion_fn)
    subtopic_page_contents_dict['subtitled_html']['html'] = conversion_fn(subtopic_page_contents_dict['subtitled_html']['html'])
    return subtopic_page_contents_dict