Updated IMG and URL tags
admin
moderator
founder
Posted by MilesCity.com Webmaster (+9978) 9 years ago
I updated the [img] and [url] tags so that BBCode links pasted from other sites should display properly here.

To do this, I:

(A) Changed the BBCode rendering so that the @ symbol can now be included in URLs. (It is no longer escaped to proxy when in a URL.)

(B) Added functionality to the [url] tag so that the [img] tag can be nested inside.



Example #1 (BBCode Source):
Search the web at [url]http://google.com/[/url].

Example #1 (HTML Result):
Search the web at http://google.com/.



Example #2 (BBCode Source):
Search the web at [url=http://google.com/]Google[/url].

Example #2 (HTML Result):
Search the web at Google.



Example #3 (BBCode Source):
Search the web at [url="http://google.com/"]Google[/url].

Example #3 (HTML Result):
Search the web at Google.



Example #4 (BBCode Source):
Search the web at
[url="http://google.com/"][img]http://www.google.com/images/logo_sm.gif[/img][/url]

Example #4 (HTML Result):
Search the web at




Example #5 (BBCode Source):
[url=http://www.flickr.com/photos/lantram/4744034130/][img]http://farm5.static.flickr.com/4136/4744034130_5dde562d30.jpg[/img][/url]
[url=http://www.flickr.com/photos/lantram/4744034130/]Middle C[/url] by [url=http://www.flickr.com/people/lantram/]lantram[/url], on Flickr

Example #5 (HTML Result):

Middle C by lantram, on Flickr



Example #6 (BBCode Source):
My e-mail address is [email protected]

Example #6 (HTML Result):
My e-mail address is [email protected]
Top
supporter
Posted by Richard Bonine, Jr. (+14664) 9 years ago
Cool!

Top
supporter
Posted by Wendy Wilson (+6169) 9 years ago
I'm glad Richard understands you. To me it's complete gobbledy-gook.
Top
supporter
Posted by Levi Forman (+3716) 9 years ago
[IMG]http://milescity.com/masthead.gif[/IMG]

Would it be hard to make it case insensitive?
Top
admin
moderator
founder
Posted by MilesCity.com Webmaster (+9978) 9 years ago
It's not hard. Perhaps I'll add that to V3.
Top