 |
 |
 |
 |
#206360 - 11/25/00 10:31 AM
Re: markup
[Re: D_Wolfwood]
|
Addict
Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
|
OK, havent tested it, but I think it should be<br />Do markup:<br /> $Body = eregi_replace("<center>","[center]",$Body);<br /> $Body = eregi_replace("</center>","[/center]",$Body);<br /><br />Unmarkup:<br /> $Body = eregi_replace("\[center\]","<center>",$Body);<br /> $Body = eregi_replace("\[\/center]","</center>",$Body);<br /><br />Mateo Byler<br /><a href="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</a>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#206362 - 11/25/00 07:44 PM
Re: markup
[Re: Sally]
|
Addict
Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
|
Well, that was done taking the example from the [ pre] tags in main.inc.php, but I have found even the [ pre] is buggy here...<br />When posting from the perl version, if you post [ pre], and dont close it, it does not get converted. That is good.<br />But in the PHP version, it does get converted even if there is no closing.<br />So I could ruin the whole page if I wanted to, well most.<br /><pre><br />This should almost be posted at the php bug forum, but since it is following this thread...<br />just tell me you´ve read it, Scream, or I´ll post it at the bugs forum as well, []/w3timages/icons/wink.gif[/]<br /><br /> <br /><br />Mateo Byler<br /><a href="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</a>
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|