Index: tests/formatting/balanceTags.php
===================================================================
--- tests/formatting/balanceTags.php	(revision 1162)
+++ tests/formatting/balanceTags.php	(working copy)
@@ -231,4 +231,25 @@
 		}
 	}
 
+	/**
+	 * @ticket 22625
+	 **/
+
+	function test_encodes_lone_anglebracket() {
+		$inputs = array(
+		    'This is < That. <blockquote>foo</blockquote> Text <a href="#">link</a>. Post-link text.',
+		    'This is <blockquote>foo</blockquote> < that.',
+		    'This is <blockquote>foo < bar</blockquote> that.',
+		);
+		$expected = array(
+		    'This is &lt; That. <blockquote>foo</blockquote> Text <a href="#">link</a>. Post-link text.',
+		    'This is <blockquote>foo</blockquote> &lt; that.',
+		    'This is <blockquote>foo &lt; bar</blockquote> that.',
+		);
+
+		foreach ( $inputs as $key => $input ) {
+			$this->assertEquals( $expected[$key], balanceTags( $inputs[$key], true ) );
+		}
+	}
+
 }
