 JOIN `dmp`.`question_templates` AS `t` ON `t`.`question_id` = `h`.`question_id`
 JOIN `dmp`.`funder_templates`   AS `f` ON `f`.`id`          = `t`.`funder_template_id`
 WHERE `h`.`institution_id` IS NULL
-      AND LENGTH(`h`.`help_text`) > 50
+AND LENGTH(dmp2.fnStripTags(`h`.`help_text`)) > 50
 GROUP BY `f`.`funder_id` ASC, `h`.`help_text` ASC;
 
 INSERT INTO `dmp2`.`resources` (

       `created_at`,       `updated_at`,              `text`,
       `old_help_text_id`, `old_suggested_answer_id`, `old_institution_id`,
       `old_funder_id`)
SELECT 'help_text',         NULL,     dmp2.fnStripTags(LEFT(`help_text`,50)),
       `h`.`created_at`,   `h`.`updated_at`,          `help_text`,
       `h`.`id`,            NULL,                      NULL,
       `f`.`funder_id`

JOIN `dmp`.`question_templates` AS `t` ON `t`.`question_id` = `a`.`question_id`
JOIN `dmp`.`funder_templates`   AS `f` ON `f`.`id`          = `t`.`funder_template_id`
WHERE `a`.`institution_id` IS NULL
AND LENGTH(dmp2.fnStripTags(`h`.`suggested_answer_text`)) > 50
GROUP BY `f`.`funder_id` ASC, `a`.`suggested_answer_text` ASC;

INSERT INTO `dmp2`.`resources` (
       `resource_type`,     `value`,                   `label`,
       `created_at`,        `updated_at`,              `text`,
       `old_help_text_id`,  `old_suggested_answer_id`, `old_institution_id`,
       `old_funder_id`)
SELECT 'suggested_response', NULL,        LEFT(dmp2.fnStripTags(`suggested_answer_text`), 50),
       `a`.`created_at`,    `a`.`updated_at`,          `suggested_answer_text`,
        NULL,               `a`.`id`,                   NULL,
       `funder_id`
