I'd like to use/copy the BBcode style of text formating on a site i'm
working on.
[b], [i], [red] etc = no problem
but URL's & Images I'm not sure how to tackle.
Sample $input:
==
I would like to suggest [url]www.google.com[/url] as a search engine.
==
How to I parse this string so that the result replaces the [url]
parts with the appropriate HTML?
<a href="" href="http://www.google.com/">http://www.google.com/">www.google.com</a>
Also, what if the text contains many [url]'s - how would you suggest
I tackle that?
Thanks all,
Riquez
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
