Forum OpenACS Development: Re: Removing HTML tags from description output

Posted by Gustaf Neumann on
if you want to strip HTML tags, just use ns_striphtml. If you want to make a pretty text preserving links, images, etc.,
use ad_html_text_convert [2].


Posted by Iuri Sampaio on
I'm going to use both! ;)

1) To insert dynamic content within new meta tags in the HTML head.
then: ns_striphtml
2) To retrieve and display HTML source from i18n messages.
then ad_html_text_convert.

By the way, I think item 2. isn't the best approach to deal with templates to ad_proc [acs-mail-lite::send], is it?

Ex: acs-mail-lite::send ... -body [_ #evex-event.body_notf_lt]

How would I use the model/arch packages/custom-pkg/templates ?