Recent Topics

1 Dec 17, 2007 10:42    

This is what I enter in the post:

<table>
<caption>Acer Aspiron 7520-5A2G12Mi</caption>
<tbody>
<th><td>Function</td><td>Status</td><td>Solved</td></th>


This is the resulting source code;

<table>
<caption>Acer Aspiron 7520-5A2G12Mi</caption>
<tbody>
<tr><th></th><td>Function</td><td>Status</td><td>Solved</td>

One more try. When I enter:

<table>
<caption>Acer Aspiron 7520-5A2G12Mi</caption>
<th><td>Function</td><td>Status</td><td>Solved</td></th>


I get as source code:

<table>
<caption>Acer Aspiron 7520-5A2G12Mi</caption>
<tbody><tr><th></th><td>Function</td><td>Status</td><td>Solved</td>

I can't remember and i might not have time today, but is the tag closing thing in _formatting.php or not? In Quicktags? AutoP?

2 Dec 17, 2007 13:36

The balance tags function is in inc/_core/_misc.funcs.php ( 928 ish )

/*
balanceTags

 Balances Tags of string using a modified stack.

 @param string    Text to be balanced
 @return string   Returns balanced text
 @author          Leonard Lin (leonard@acm.org)
 @version         v1.1
 @date            November 4, 2001
 @license         GPL v2.0
 @notes
 @changelog
             1.2  ***TODO*** Make better - change loop condition to $text
             1.1  Fixed handling of append/stack pop order of end text
                  Added Cleaning Hooks
             1.0  First Version
*/
function balanceTags($text)
{

¥


Form is loading...