MML is a project mainly written in PHP, it's free.
This will allow you to create and parse your own markup language similar to Facebook's FBML and Canvas model