We a have a ticketing system that handles requests and follows up on the status of the request. There is a section where one can enter details about the solution.
The problem is that when somebody posts some CFML or HTML code as part of the solution then the page actually renders those comments as part of the underlying CFML/HTML code.
My solution for that using CF would be just to wrap things around a HTMLCodeFormat(). However I would like to go a step further and actually insert metatags just like we do here in Tek-tips with the
The problem is that when somebody posts some CFML or HTML code as part of the solution then the page actually renders those comments as part of the underlying CFML/HTML code.
My solution for that using CF would be just to wrap things around a HTMLCodeFormat(). However I would like to go a step further and actually insert metatags just like we do here in Tek-tips with the
Code:
metatag.
I came up with some ideas for this but It started to get more complicated than what it needs to be.
Anybody has any idea on how to create something similar to the TGML we all use here??
There is a small twist. Here in Tek_tips we cannot reopen a post and edit it. So the actual formatting can be saved directly to the tables. This means that the TGML tag "[ code]" once transformed into the following lines
<div id="code">
<h4>Code</h4>
<div class="body">
The code goes here.
</div>
</div>
can be safely saved as part of the whole post.
In my case the comments can be edited. So I should save the actual metatag [ code] along with the comments, that way next time somebody tries to edit the contents they don't see different code than what they inserted.
I hope that's clear. If not I can always be more descriptive.
Thanks in advance...
[b]grtfercho çB^]\..[/b]
[i]"Imagination is more important than Knowledge"[/i] A. Einstein
-----------------------------------------------
[URL unfurl="true"]www.llajta.com[/URL]