| @@ -605,11 +605,10 @@ | ||
| 605 | 605 | ?> |
| 606 | 606 | <?php if ( $should_render_inline_editing ) { ?> |
| 607 | 607 | <div <?php $this->print_render_attribute_string( 'editor' ); ?>> |
| 608 | 608 | <?php } ?> |
| 609 | - <?php // PHPCS - DO NOT REMOVE THIS ECHO - THE MAIN TEXT OF A WIDGET SHOULD NOT BE ESCAPED! | |
| 610 | - echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 611 | - ?> | |
| 609 | + <?php // PHPCS - the main text of a widget should not be escaped. | |
| 610 | + echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput ?> | |
| 612 | 611 | <?php if ( $should_render_inline_editing ) { ?> |
| 613 | 612 | </div> |
| 614 | 613 | <?php } ?> |
| 615 | 614 | <?php |
| @@ -635,19 +634,8 @@ | ||
| 635 | 634 | * |
| 636 | 635 | * @since 2.9.0 |
| 637 | 636 | * @access protected |
| 638 | 637 | */ |
| 639 | - public function render_markdown(): string { | |
| 640 | - $editor_content = $this->get_settings_for_display( 'editor' ); | |
| 641 | - $editor_content = $this->parse_text_editor( $editor_content ); | |
| 642 | - | |
| 643 | - if ( empty( $editor_content ) ) { | |
| 644 | - return ''; | |
| 645 | - } | |
| 646 | - | |
| 647 | - return \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $editor_content ); | |
| 648 | - } | |
| 649 | - | |
| 650 | 638 | protected function content_template() { |
| 651 | 639 | ?> |
| 652 | 640 | <# |
| 653 | 641 | if ( '' === settings.editor ) { |