Balances tags of string using a modified stack.
Ignores the 'use_balanceTags' option.
<?php force_balance_tags( $text ) ?>
This function is used in the short post excerpt list, to prevent unmatched elements.
For example, it makes
<div><b>This is an excerpt. <!--more--> and this is more text... </b></div>
not break, when the html after the more tag is cut off.
In the example above,
<div><b>This is an excerpt.
should be changed to:
<div><b>This is an excerpt. </b></div>
by the force_balance_tags function.
Since: 2.0.4
force_balance_tags() is located in wp-includes/formatting.php
.