Codex tools: Log in
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.
force_balance_tags() is located in