diff --git wp-includes/widgets/class-wp-widget-text.php wp-includes/widgets/class-wp-widget-text.php
index a379fd7..77f883f 100644
--- wp-includes/widgets/class-wp-widget-text.php
+++ wp-includes/widgets/class-wp-widget-text.php
@@ -64,9 +64,28 @@ class WP_Widget_Text extends WP_Widget {
 		echo $args['before_widget'];
 		if ( ! empty( $title ) ) {
 			echo $args['before_title'] . $title . $args['after_title'];
-		} ?>
-			<div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div>
-		<?php
+		}
+
+		/**
+		 * Filters the wrapper of the Text widget, comes before the text.
+		 *
+		 * @param string         $wrapper     The widget wrapper markup, before the text.
+		 * @param array          $instance    Array of settings for the current widget.
+		 * @param WP_Widget_Text $this        Current Text widget instance.
+		 */
+		echo apply_filters( 'widget_text_wrapper_before', '<div class="textwidget">', $instance, $this );
+
+		echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text;
+
+		/**
+		 * Filters the wrapper of the Text widget, comes after the text.
+		 *
+		 * @param string         $wrapper     The widget wrapper markup, after the text.
+		 * @param array          $instance    Array of settings for the current widget.
+		 * @param WP_Widget_Text $this        Current Text widget instance.
+		 */
+		echo apply_filters( 'widget_text_wrapper_after', '</div>', $instance, $this );
+
 		echo $args['after_widget'];
 	}
 
