method to evaluate "displaytags"?

Is there a programatic way to evaluate %%displaytags%% in a template?

I want to build some HTML output based on templates stored in the DB, and say call something like:

var s = replaceTags( record, templateText )

Perhaps there’s a method for this but a missed it?

thanks,
greg.

Hi Greg,

I believe you mean this: :)

utils.stringReplaceTags(text, foundset)

Exactly, thanks!
g.