I am working on a Symfony (1.4) project which requires the user to be able to insert Internal URIs into the body of user generated content, writing within TinyMCE/WMD editor (haven't decided yet!) the user can add an internal URI to another place on the website. The content will be stored in the database as markdown/html.
I could simply insert the current URI retrieved through Symfony itself, but I was hoping there was a way to store the respective module/action/etc variables so that if the route needed to change, the URIs would remain correct throughout the website.
The only thing I can think of is a processor much like PHP Markdown, which performs a text search, extracting a custom mark-up within the content block, and replacing it with the markdown/html code for the generated route (using Symfony's get_url()/link_to() methods). [This would also require a text-mark-up generator, etc.]
Does Symfony have any other/better way than this? Can I access Symfony helpers/etc from within user generated input?