Replace Wordpress-style shortcodes with HTML on the fly