Forum Moderators: coopster

Message Too Old, No Replies

built-in syntax highlighting in php 4.1

does it do <br> or <br />?

         

mincklerstraat

11:41 am on Mar 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



nl2br() started outputting <br /> as of 4.05 - however, my memory tells me that the functions highlight_string() and highlight_file() didn't get around to switching from <br> to <br /> until later. Anyone remember if 4.1's syntax highlighting had <br> or <br />'s in it, or have their own 4.1.x install to test? If it's <br> I'll have to account for this in my script. Thx!

coopster

1:27 pm on Mar 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I searched the Changelogs but couldn't find any documentation on this. You could always install your own implementation of the earlier release [php.net], but it would probably be easier to just plan for the worse and code accordingly.

The only other option I can think of would be to pull down the source code for that version and search through the source for that routine.

mincklerstraat

4:28 pm on Mar 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks coopster, Mr. Lazy here will just have to do a bit more work ;)

coopster

12:55 am on Mar 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Interested to know what you find out if you do go down that road ;-)