MultiChoice - Inserting images into "chosen answer feedback"

Hi,
Based on https://h5p.org/comment/38256#comment-38256 I managed to alter the MultiChoice semantics in order to allow inserting images into the Overall Feedback field, But I fail to do the same for the chosen answer feedback.

public function hvp_alter_semantics(&$semantics, $name, $majorversion, $minorversion) { if ( $name === 'H5P.MultiChoice' ) { foreach ( $semantics as $semantic_field ) { if ( $semantic_field->name === 'overallFeedback' ) { // We're now at "overallFeedback" $semantic_field->label = 'Final feedback (maxLength adapted)'; $overall_feedback_fields = $semantic_field->fields; foreach( $overall_feedback_fields as $overall_feedback_field ) { if ( $overall_feedback_field->name === 'overallFeedback' ) { // We're now at "overallFeedback/overallFeedback" $overall_feedback_elements = $overall_feedback_field->field->fields; foreach( $overall_feedback_elements as $overall_feedback_element ) { if ( $overall_feedback_element->name === 'feedback' ) { // We're now at "overallFeedback/overallFeedback/overallFeedback/feedback" $overall_feedback_element->placeholder = 'I can take up to 5000 characters!'; $overall_feedback_element->maxLength = 5000; $overall_feedback_element->type = 'text'; $overall_feedback_element->widget = 'html'; $overall_feedback_element->tags = array(); $overall_feedback_element->tags = array_merge($overall_feedback_element->tags, array( 'table', 'thead', 'tfoot', 'tbody', 'tr', 'th', 'td', 'strong', 'em', 'u', 'sub', 'sup', 'ul', 'ol', 'a', 'hr', 'p', 'img' )); } } } } } } // the part below does not work foreach ( $semantics as $semantic_field ) { if ( $semantic_field->name === 'answers' ) { // We're now at "answers" $semantic_field->label = 'ADAPTED answers'; $answers_fields = $semantic_field->fields; foreach( $answers_fields as $answers_field ) { if ( $answers_field->name === 'answer' ) { // We're now at "answers/answer" $answer_elements = $answers_field->field->fields; foreach( $answer_elements as $answer_element ) { if ( $answer_elements->name === 'tipsAndFeedback' ) { // We're now at "answers/answer/tipsAndFeedback" $tips_and_feedback_elements = $tips_and_feedback_field->field->fields; foreach( $tips_and_feedback_elements as $tips_and_feedback_element ) { if ( $tips_and_feedback_element->name === 'chosenFeedback' ) { // We're now at "answers/answer/tipsAndFeedback/chosenFeedback" $tips_and_feedback_element->maxLength = 4000; $tips_and_feedback_element->type = 'text'; $tips_and_feedback_element->widget = 'html'; $tips_and_feedback_element->tags = array(); $tips_and_feedback_element->tags = array_merge($tips_and_feedback_element->tags, array( 'table', 'thead', 'tfoot', 'tbody', 'tr', 'th', 'td', 'strong', 'em', 'u', 'sub', 'sup', 'ul', 'ol', 'a', 'hr', 'p', 'img' )); } } } } } } } } } }

Can anybody help?

Thanks in advance!!!